xbbdbd·11 เดือนที่ผ่านมา·discussThis is the problem with people trying to be clever. Now you output escape sequences regardless of terminal setting.Using a library which handles that (an a thousand other quirks) makes much more sense