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.
I'm looking to make my command prompt (PS1) look better. I've already made colors come out and placed my login, host, date, and pwd on it. It looks aight. Does anyone know how I can call out better looking characters? Maybe like those that BitchX uses on its screens? Something like a color fading line would be a nice effect ...
Better looking characters? Are you talking about changing the font?
If so, you need to define the font you want used in the .Xdefaults file (for Xterms, Aterms and the like). Changing console fonts is slightly trickier - take a look at /etc/init.d/kbd and /etc/sysconfig/console
Fancy colour schemes might call for more colours that your terminals support - LFS has a good hint on compiling Xterms with 256 colours, you may find it helps.
The only thing I ever found really useful to do to the prompt myself, tho, was to add a carriage return at the start so there's always a blank line between commands - breaks things up nicely
No, not the font ... just add a few special ASCII characters in different colors. I've seen people have such prompts, which is why I'm asking today. Since they're plain ASCII, I'm assuming they work in every terminal, whether it's text or graphical.
I guess I'm looking to get the PS1 codes for all ASCII characters, and all color variation codes as well. This should be what I'm after.
I'm assuming you've read man bash and info bash, so you may want to try this: http://www.freebsddiary.org/prompt.php. Be sure to check out the link at the bottom of that page.
Ok, I think I figured it out ... I was hoping someone would give me the answer quickly, but that's ok. Also, it seems like oneandoneis2 is right about the different terminals. Depending on what kind of machine I'm on, it'll display the ascii codes that that machine supports.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.