Color in Cygwin terminal
Solution 1
Copy of the answer from stackoverflow.
I'm the author of ConEmu - opensource console emulator with tabs, which represents multiple consoles and simple GUI applications as one customizable GUI window.
Initially, the program was designed to work with Far Manager (my favorite shell replacement - file and archive management, command history and completion, powerful editor). But ConEmu can be used with any other console application or simple GUI tools (like PuTTY for example). ConEmu is a live project, open to suggestions.
A brief excerpt from the long list of options:
- Smooth resize, maximized and fullscreen window modes
- User friendly text and block selection (from keyboard or mouse), copy, paste, text search in console
- Optional settings (e.g. pallette) for selected applications
- ANSI X3.64 and Xterm 256 color
- Use any font installed in the system, or copied to a folder of the program (ttf, otf, fon, bdf)
- Run selected tabs as Administrator (Vista+) or as selected user
- Windows 7 Jump lists and Progress on taskbar
- Integration with DosBox (useful in 64bit systems to run DOS applications)
- Scrollbar initially hidden, may be revealed by mouseover or checkbox in settings
Far Manager users will acquire shell style drag-n-drop, thumbnails and tiles in panles, tabs for editors and viewers, true colors and font styles (italic/bold/underline).
Solution 2
Look at these two alternatives to the default Cygwin terminal,
-
MinTTY
- I prefer this one; am not much of a tab fan -- I like overlapping windows
:-)
- I prefer this one; am not much of a tab fan -- I like overlapping windows
-
Terminator
- Multiple Tabs - Like tabbed browsing, only with terminals
- Windows x86 .msi: Requires Cygwin <= 1.7.7 and Cygwin Ruby and 32 bit Java.
Solution 3
I found that using a recent Cygwin install (2015-09), I can see colors of my logs in a simple Cygwin Terminal, using cat
or more
.
piped with grep
, it's powerfull enough to see what you want.
No need to install anything else
Related videos on Youtube
ForbesLindesay
Full stack TypeScript, Node.js & React developer. Author of https://www.atdatabases.org. The safest, easiest to use Postgres, MySQL and SQLite client for node.js
Updated on September 18, 2022Comments
-
ForbesLindesay over 1 year
I've installed cygwin because I'm a bit fed up with the Windows terminal not being great. The only problem I'm having is the lack of colours.
You can see the problem in the following 2 screenshots that display the same command:
All I want is something which has a nice font, resizes properly (including proper behaviour when maximised) and support for colours. Ideally I'd like tabs too. This seems like a silly reason to end up buying a mac, so I'm hoping I can get all these things on windows somehow.
-
Art Gertner almost 9 yearstry console2 - it is a lightweight customizible alternative to cmd.exe. I've been using it for a while now and it does the job
-
-
suspectus over 8 yearsThe ANSI codes appear in your post - is that what was intended?
-
Arjan over 8 yearsIs this an answer, or are you stating you're still having problems? If it's an answer, please edit to explain a bit more.
-
aalleexxaannddrree over 8 yearsremoved the useless part , hope it's clear enough now