It is currently Mon, 27 Jun 2022 12:24:34 GMT



 
Author Message
 Changing a terminal's foreground and background color
Hi,

I have been using Linux for quite a while, and have also
had FreeBSD for a while too, although I haven't used it
as much.

To change a terminals foreground and background colors
in Linux there is a program called setterm. You can also
store the chosen colors permanently as well. (In my red
hat distro I do it in rc.sysinit when the system boots up)
Is there an equivalent program in FreeBSD ?

I tried "rolling my own" version of setterm for FreeBSD
by looking at the C source for the Linux version and
extracting out the parts I want. It works - sometimes.
It changes the colors, (usually, but not always) but
refuses to store them permanently. In the linux version
of setterm storage is done by printf(("\033[8]"). It
appears that this is not the string to store permanently
for cons25 (the default FreeBSD TERM). Also mysetterm wont
change the colors in an xterm. (It will set bold on and
off though)

Is there an equivalent to setterm in FreeBSD, and/or
a guide to the Terminal Control Stings for "cons25"
and/or any other information on this topic anywhere ?

regards,

Bernard Doyle



 Thu, 20 May 2004 03:55:58 GMT   
 Changing a terminal's foreground and background color

vidcontrol(1) should do everything you want.



 Thu, 20 May 2004 05:21:35 GMT   
 Changing a terminal's foreground and background color

Thanks!!!



 Fri, 21 May 2004 03:05:21 GMT   
 
   [ 3 post ] 

Similar Threads

1. How to change emacs background and foreground colors?

2. HELP, change background/foreground color for xterm

3. changing background and foreground color

4. changing a terminal's background color

5. Background/Foreground colors in Console

6. Background/foreground colors

7. ergonomic foreground and background colors..

8. foreground/background same color after X?

9. Top of ScrollBar color, Foreground or Background?

10. Question of changing shortcut's text background color


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software