lotus

previous page: 127. How To Get NUM LOCK to Default to On
  
page up: Linux FAQ
  
next page: 129. How To Have More Than 128Mb of Swap

128. How To Set (Or Reset) Initial Terminal Colors




Description

This article is from the Frequently Asked Questions for Linux, the Free/Open Source UNIX-like operating system kernel that runs on many modern computer systems. Maintained by David C. Merrill with numerous contributions by others. (v1.0).

128. How To Set (Or Reset) Initial Terminal Colors

A: The following shell script should work for VGA consoles:

 for n in 1 2 4 5 6 7 8;                                                     
 do                                                                          
   setterm -fore yellow -bold on -back blue -store > /dev/tty$n              
 done                                                                        

Substitute your favorite colors, and use /dev/ttyS$n for serial terminals.

To make sure they are reset when people log out (if they've been changed):

Replace the references to getty (or mingetty or uugetty or whatever) in /etc/ inittab with references to /sbin/mygetty. #!/bin/sh setterm -fore yellow -bold on -back blue -store > $1 exec /sbin/mingetty $@

[Jim Dennis]

 

Continue to:













TOP
previous page: 127. How To Get NUM LOCK to Default to On
  
page up: Linux FAQ
  
next page: 129. How To Have More Than 128Mb of Swap