LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-17-2002, 11:17 PM   #1
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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, 03: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, 03:58 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 04:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ahh termcap i do believe.
 
Old 08-18-2002, 04: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: 47
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.
 
Old 08-18-2002, 07:46 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

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

Original Poster
Rep: Reputation: 56
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, 11:22 AM   #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, 11:32 AM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Original Poster
Rep: Reputation: 56
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, 02: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, 03:53 PM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

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

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

Thanks for hints,
Werner.
 
  


Reply



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

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

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

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
Open Source Consulting | Domain Registration