LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 11-09-2005, 11:25 AM   #1
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Rep: Reputation: 30
Customizing the command prompt


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 ...

Any resources would be appreciated!
 
Old 11-10-2005, 04:00 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
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
 
Old 11-10-2005, 08:13 AM   #3
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
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.
 
Old 11-10-2005, 08:28 AM   #4
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
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.
 
Old 11-10-2005, 12:34 PM   #5
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in customizing the command line? ur-unholyness Linux - General 1 02-03-2005 04:45 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
customizing bash prompt? sunshine Mandriva 1 03-08-2004 09:18 PM
im only getting command prompt sniperhf Linux - Software 10 06-16-2003 03:19 PM
How to recall an old command at the command prompt? J_Szucs Linux - Newbie 9 03-07-2003 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration