From 637b0803d4059f1ad8524c45510e450e2717afcf Mon Sep 17 00:00:00 2001 From: zi0d3v4 <75640323+zi0d3v4@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:11:24 +0300 Subject: [PATCH] Update stream_gcode.py for win10 correct colored output Added ```os.system("")``` to print the implemented colored output functionality correctly on different types Windows 10 terminals/consoles like PowerShell and CMD.exe. It kept printing the values of the octal color codes rather than displaying in targeted color in my python console, PowerShell and cmd. --- stream_gcode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream_gcode.py b/stream_gcode.py index f158d15..ea81fb9 100755 --- a/stream_gcode.py +++ b/stream_gcode.py @@ -7,6 +7,8 @@ import serial import time +os.system("") #To print colored output correctly on windows 10 + col_send = "\033[32m" col_recv = "\033[33m" col_error = "\033[31m"