LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2002, 12:17 AM   #1
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
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.
 
Old 08-18-2002, 04:18 AM   #2
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
I suggest you first learn Japanese :-)
 
Old 08-18-2002, 04:58 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
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!!
 
Old 08-18-2002, 05:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
ahh termcap i do believe.
 
Old 08-18-2002, 05:16 AM   #5
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
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 05:24 AM.
 
Old 08-18-2002, 08:46 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Original Poster
Rep: Reputation: 55
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:
 
Old 08-18-2002, 08:56 AM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Original Poster
Rep: Reputation: 55
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.
 
Old 08-18-2002, 12:22 PM   #8
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
are you talking about /etc/DIR_COLORS ?
 
Old 08-18-2002, 12:32 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Original Poster
Rep: Reputation: 55
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.
 
Old 08-18-2002, 03:09 PM   #10
demarque
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
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 ...
 
Old 08-18-2002, 04:53 PM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Original Poster
Rep: Reputation: 55
Thans demarque, I think I'll play with it.
 
Old 11-25-2014, 09:59 AM   #12
Werner
LQ Newbie
 
Registered: Feb 2003
Location: D-Schramberg-Sulgen
Posts: 5

Rep: Reputation: 0
But how can I make it that setterm uses "darkgray"="\e]P82B2B2B"?

Thanks for hints,
Werner.
 
  


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
how to change the foreground color of konsole SuSe 9.2 KDE GnaM Linux - Newbie 1 12-31-2004 10:01 AM
TTY background color! hitesh_linux Linux - General 1 09-17-2004 07:22 AM
How do I customize background/foreground colors in Eclipse? wearetheborg Linux - Newbie 0 09-10-2004 03:48 PM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 09:32 AM
ls = ls --color=tty KIRKR Linux - General 8 02-06-2002 05:05 PM


All times are GMT -5. The time now is 09:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration