Sorry for another n00b question. I’m running the latest dietpi on a 4B, headless. I use ssh from a Linux box.
On my Linux box, the terminal is monochrome. When I ssh to the dietpi box there are colors in the terminal. For my eyes the colors are difficult to see, especially the cpu temp…it’s yellow and completely invisible to me.
I’d like a standard black and white terminal, call me Old Skool
I have to say, I don’t remember seeing colors on any other OS although I may have fixed it long ago in some config file that I keep copying around to all the new boxes I bring up.
What am I missing? Thank you.
as far as I can see, colour scheme for CPU temp is hardcode in /boot/dietpi/func/dietpi-globals
This is the code section https://github.com/MichaIng/DietPi/blob/112e56c836a34ea70ddf11f89ac5a03253258271/dietpi/func/dietpi-globals#L1470-L1504
Thank you, I will look at that.
But really I want to change the terminal to monochrome all the time, not just for the motd.
well the colour are defined inside the scripts.
FYI, probably something for a later enhancement to allow user defined colours ?
I’m sorry, I mean there should be a way to set a TERM that works yet does not support color. Or maybe some way to tell xterm not to display colors. The popup menu settings didn’t show anything promising aside from one item which I unchecked, but it didn’t change anything.
Thank you, I don’t expect you guys to change any code for me. I realize most people either want color or don’t care.
For us old greybeards, we often can’t see anything so we like black text on a white background. It’s just odd that I never ran into this or like I said maybe I fixed it with some config somewhere decades ago and just copied it to every new box and now I can’t remember how I fixed it.
Ok, xterm -cm seems to help… lemme go with that for now. This is actually quite a nice solution for me since BOLD works and text flashes, just no color
Thanks a lot again, for your time and friendly helpfulness
The colours of the login banner can be adjusted in /boot/dietpi/.dietpi-banner: https://github.com/MichaIng/DietPi/blob/master/dietpi/func/dietpi-banner#L72-L75
aCOLOR '\e[38;5;154m' # DietPi green | Lines, bullets and separators
aCOLOR '\e[1m' # Bold white | Main descriptions
aCOLOR '\e[90m' # Grey | Credits
aCOLOR '\e[91m' # Red | Update notifications
I wanted to allow this DietPi-wide since a while: https://github.com/MichaIng/DietPi/issues/2651
Also the notification/message print function has it’s colours prepared as variables already, to allow removing them for systemd services and cron jobs (else raw colour codes are in logs). Please feel free to share some input/ideas on the pull request.
Thank you, Michal. I see the problem when I use the dietpi tools but my issue is not specific to those. I just want a monochrome terminal all the time.
I’m using xterm -cm for now on my host, it seems mostly ok. I need to tune the options a bit.
Thanks for looking into this.
This is a setting that can be adjusted on the client. For example in SecureCRT if I deselect the ANSI colour, then the terminal stays monochrome, both motd and the prompt. So you can look at the settings of the terminal emulator you are using.
same for Putty. There you could deselect colours and screen stays monochrome as well.
It’s odd, even xterm +cm doesn’t seem to work.
I’m still looking into this.
did you checked your client settings? Maybe you could disable colours at this level.
Jep, client-side seems to be the best option. E.g. for the whiptail dialogues of our scripts the committee’s colours cannot be changed, as those are hardcoded in the underlying newt library.