Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Alright i just want to ask if anyone knows where the kernel handles it's color in the source. Like is it possible to add more color options for the linux executable files manually? Also I want to change the orange color \x1B[0;33m to something more yellow and I don't know where to look.
Then edit the file .lscolors to add what you want. The format of the string is not well [URL="http://linux-sxs.org/housekeeping/lscolors.html"]documented[/URL, though.
You will not find that, kernel does not contain such information. (Also there is no "color options for the linux executable") You need to specify your problem much better: what have you done (clicked or which command did you type and execute)? Probably you can post us a screenshot to show which color do you mean.
What do you mean the kernel source code doesn't handle the color? What does then if vmlinux doesn't handle the color? It's the normal yellow color that looks like it's brown.
that is not handled by the kernel itself, but other user space programs. There is no "normal yellow color" in general, but usually it is a default for an application. Which one did you mention? What looks brown now?
Oh ok I get it now thanks. Does anyone know which user space program handles the color? Is it a library file that handles the color? What exactly is an example of a user space program?
color of what? please specify what are you talking about.
All the programs you know about are user space programs, but the kernel itself. So the command ls, grep or a browser, a terminal emulator, text editor or a game all are user space programs and all of them are able to manage its own colors. That's why would be important to explain which one are you talking about.
The "Beyond Linux From Scratch" book's Chapter 3 touches on how to set up various color sequences for programs and dialogue in Bash. Check it out and see if it has anything of reference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.