Table of Contents
Newsgroups: comp.os.linux.misc Date: Wed, 29 Oct 2003 02:02:49 GMT
> Where can I find a list of macros for /etc/issue?
Did you do "man issue"? If you are confused by the format of a config file, "man $CONFIG_FILE" is often helpful.
> Eg., Kernel \r on an \m. Especially, is there a way to show the > current tty #?
Like the man page for issue says, the "escape codes" are interpreted by whatever getty you're using, so read the man page for your getty.
Usually, distros use mingetty or agetty for the virtual consoles. Virtual consoles can also use real escape codes (sequences beginning with ASCII 27) to set colors. The sequence ^[[01;31m sets the foreground color to red, f'rexample. "man console_codes" for more.
Matt G
Examine /etc/inittab to see which getty variant you are using (mingetty, agetty, etc.) and then check the manpage for that getty.