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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-17-2002, 11:17 PM
|
#1
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
tty background/foreground color
Hello ladies and gentlemen,
I have another one. How does one change background and foreground color on tty? I was looking all around on the web to find an answer, the only site that mentioned a tip how to do so was in Japanese, which I, apparently, cannot understand. Does anyone know how to do so? I am tired to see black background and white foreground on my tty's I want a change.
|
|
|
|
08-18-2002, 03:18 AM
|
#2
|
|
Member
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99
Rep:
|
I suggest you first learn Japanese :-)
|
|
|
|
08-18-2002, 03:58 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
i know there's a file in /etc/for it, controls blinking, colors, screen inversions... and is really really long and cryptic.. can't remember what it's called though!!
|
|
|
|
08-18-2002, 04:02 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
ahh termcap i do believe.
|
|
|
|
08-18-2002, 04:16 AM
|
#5
|
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
I also beleive you can change the foreground color by changing PS1 and PS2 variables. I changed my prompt look by changing those variables. So now i have a prompt that displays date, user and machine name and its green and blue.
http://www.linuxbrit.co.uk/bashprompt/ can help you a little with that. But then i saw terminals with real art (Like when you start BitchX in CLI - the BitchX Logo) but i have no idea how to get the prompt to look like that (like a old DOS game or something)
Well good luck
-NSKL
ALso heres a HOWTO on customizing your bash prompt:
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/
Last edited by NSKL; 08-18-2002 at 04:24 AM.
|
|
|
|
08-18-2002, 07:46 AM
|
#6
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Original Poster
Rep:
|
Thanks for all the replies guys, I knew I'd get some info. Hmm, I knew about /etc/termcap - I guess, I have to dive into understanding all that cryptic goop. NSKL, thanks for the link on bash prompt, I have no trouble changing PS1 variable, and thanks for more hints. But what I want to do, I want a plain white background, and black foreground, so it'll look like SunOS's terminal.
Hmmm, /etc/termcap ... I know this is the place, and the question remains how? Ok, I'll look for /etc/termcap howtos and examples.
Peace everyone.
Thanks
:POOF:
|
|
|
|
08-18-2002, 07:56 AM
|
#7
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Original Poster
Rep:
|
I think I got it, it is terminfo, the man page for termcap revealed that it is obsolete, terminfo is what I need, so I will delve into more cryptic goop.
|
|
|
|
08-18-2002, 11:22 AM
|
#8
|
|
Member
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176
Rep:
|
are you talking about /etc/DIR_COLORS ?
|
|
|
|
08-18-2002, 11:32 AM
|
#9
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Original Poster
Rep:
|
No, it's not that, it defines only what colors to use when you do ls and staff, I want permanent background color to be white, and foreground to be black, that's all I need, I know I am a little spoiled but I want my terminal look like SunOS, why? because it's too dark at night to see my keyboard, I need some illumination. 
|
|
|
|
08-18-2002, 02:09 PM
|
#10
|
|
LQ Newbie
Registered: Jul 2002
Posts: 10
Rep:
|
try setterm
man setterm
...
setterm
[ -term Terminalname ]
[ -reset ]
[ -initialize ]
[ -cursor [on|off] ]
[ -repeat [on|off] ]
[ -appcursorkeys [on|off] ]
[ -linewrap [on|off] ]
[ -default ]
[ -foreground black|blue|green|cyan|red|magenta|yellow|white|default ]
[ -background black|blue|green|cyan|red|magenta|yellow|white|default ]
[ -ulcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
[ -ulcolor bright blue|green|cyan|red|magenta|yellow|white ]
[ -hbcolor black|grey|blue|green|cyan|red|magenta|yellow|white ]
[ -hbcolor bright blue|green|cyan|red|magenta|yellow|white ]
[ -inversescreen [on|off] ]
[ -bold [on|off] ]
[ -half-bright [on|off] ]
[ -blink [on|off] ]
[ -reverse [on|off] ]
[ -underline [on|off] ]
[ -store ]
[ -clear [all|rest] ]
[ -tabs [ tab1 tab2 tab3 ... ] ] (tabN = 1-160)
[ -clrtabs [ tab1 tab2 tab3 ... ] ] (tabN = 1-160)
[ -regtabs [1-160] ]
[ -blank [0-60] ]
[ -dump [1-Anzahl_Konsolen] ]
[ -append [1-Anzahl_Konsolen] ]
[ -file Dumpdateiname ]
[ -msg [on|off] ]
[ -msglevel [0-8] ]
[ -powersave [on|vsync|hsync|powerdown|off] ]
[ -powerdown [0-60] ]
[ -blength [0-2000] ]
[ -bfreq freqnumber ]
...
hope this helps ...
|
|
|
|
08-18-2002, 03:53 PM
|
#11
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Original Poster
Rep:
|
Thans demarque, I think I'll play with it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|