瀏覽代碼

add: sys.stdout.flush() for grep the output

micha 1 年之前
父節點
當前提交
e815553298
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      _LibreLightDesk.py

+ 1 - 0
_LibreLightDesk.py

@@ -108,6 +108,7 @@ def cprint(*text,color="blue",space=" ",end="\n"):
     txt += '\033[0m'
     print(txt,end=end)
     #return txt
+    sys.stdout.flush() # to grep output
 
 cprint("________________________________")