

To the majority of the world of terminals nowadays, boldface means actual boldface, a change in font weight, not colour.ĭo not use it as if it were a colour change.I am not an expert of *NIX OS, but in my two years of learning the philosophy of the OS I noticed that almost every implementation of a GUI concept or idea has it origin from CLI, the GUI is just a manner of automating things in a way that once you know what to write to the computer to do what you want to achieve, that task remains in the form of that button, but again in my opinion a button is just another abstraction of an "alias" in the CLI for a command or just a text file whit a script, it is useful for some cases to have buttons, for example editing a video in CLI is not a optimal choice for that task, I mean you can but probably will take you much more time, specially if you don't know the tool, but in the other hand, almost every video editing GUI app uses "ffmpeg" ( a CLI app and library) as it backed, so probably learning ffmpeg will teach you how to use almost every app of video editing out there. Only the linux-16color terminal type in the terminfo database tries to set colours 8 to 15 that way, in fact. Ironically, the hardwiring that you, or the person who did that in your prompt, have chosen applies to a small minority of terminal types. Then it will work with many types of terminal and not just the one that you have hardwired. Generate them with tput setaf and tput setab and use command substitution to place the result into your PS1 shell variable. The other programs are not hardwiring control sequences, which is why they work. If you look carefully at your UXTerm screenshot you will see that that is exactly what UXTerm has in fact done, set a low-numbered colour and turned boldface on, just as your prompt asked.


It has hardcoded SGR control sequences for changing colour, and it has hardcoded the wrong ones, for another terminal type.

Your prompt is not correct for your terminal type. UXTerm's infocmp, if it helps: Reconstructed via infocmp from file: /lib/terminfo/x/xterm-256colorĪm, bce, ccc, km, mc5i, mir, msgr, npc, xenl,Ĭolors#0x100, cols#80, it#8, lines#24, pairs#0x10000,Īcsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz%-%d%e38 5 %p1%d% m, ~/.alacritty.yml: # Colors (Solarized Light)īut they show completely different behaviours color-wise:īoth pass this test I've found: #!/usr/bin/env bash I'm using Solarized Light color theme for Alacritty and UXTerm. I don't quite understand XTerm's (UXTerm's in this case) behaviour regarding colors.
