Python Forum
Coloured text in the terminal works in Linux but not Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coloured text in the terminal works in Linux but not Windows
#1
I'm using the syntax "\033[31;40mRed\033[37;40m" for coloring text in the terminal, and it works perfectly on my Linux laptop, but when I installed Python on my Windows PC and tried running my code, the color syntax just printed as-is. Is there another module I have to install for it to work on Windows?
Reply


Messages In This Thread
Coloured text in the terminal works in Linux but not Windows - by Flexico - Aug-26-2019, 09:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows, Linux and virtual environments Calab 2 538 Mar-07-2025, 10:43 PM
Last Post: snippsat
  Can a windows file be 'remapped' in Linux ? jehoshua 3 954 Dec-07-2024, 03:33 AM
Last Post: jehoshua
  How to compile a Python script for a Windows / Linux executable? netanelst 2 2,162 May-24-2022, 07:02 AM
Last Post: netanelst
  Resources for printing tabledata-Linux and Windows hammer 4 2,380 Apr-25-2022, 12:09 PM
Last Post: hammer
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 5,655 Mar-04-2021, 03:09 PM
Last Post: martpogs
  multiprocessing difference between Linux and Windows direl 2 4,070 Oct-01-2020, 07:10 PM
Last Post: direl
  read terminal text from running program AArdvark_UK 2 2,720 Aug-27-2020, 12:43 PM
Last Post: AArdvark_UK
  script works in windows but not in linux ovidius80 2 3,750 Apr-29-2020, 02:10 PM
Last Post: ovidius80
  keyboad scanner routine(linux and windows) 1885 0 2,388 Oct-26-2019, 03:34 PM
Last Post: 1885
  Code works in IDLE, appears to work in CMD, but won't produce files in CMD/Windows ChrisPy33 3 4,333 Jun-12-2019, 05:56 AM
Last Post: ChrisPy33

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020