Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!daver!tscs!metran!jay From: jay@metran.UUCP (Jay Ts) Newsgroups: comp.unix.sysv386 Subject: Re: Copyright startup lines Message-ID: <375@metran.UUCP> Date: 22 Feb 91 03:37:37 GMT References: <1991Feb17.130459.29719@virtech.uucp> Organization: Metran Technology, Tampa, Florida Lines: 39 In article <1991Feb17.130459.29719@virtech.uucp>, cpcahil@virtech.uucp (Conor P. Cahill) writes: > shwake@raysnec.UUCP (Ray Shwake) writes: > > On a related issue, both ISC and SCO UNIX *prefix* the login prompt > >with a node name reference and a couple of new lines. *This* one, I believe, > >comes out of getty. > > yes, they come out of getty. Most of it comes out of the /etc/issue file > that getty reads, so changing that file will get rid of most of the pre-login > prompt stuff. If you don't want anything to be printed out of /etc/issue, there is a quick fix to "get rid" of the "pre-login prompt stuff". I realize this is kind of a hack, but I think it's worth mentioning anyway. NOTE: This problably will not work on all terminals; I use it for the console and virtual consoles on my own system. The ANSI-standard "clear screen" escape sequence is ESC-c. So all you have to do is modify your /etc/gettydefs file like this (for each entry you use): console# B9600 [ ... ] # B9600 [ ... ] #^[cConsole Login: #console ^that ^[ is an ESC character Thus, the pre-login prompt stuff is cleared off the screen, and users always get the login prompt in the top left of a nice, clean screen. It's also possible for the gettydefs login string to print newlines (I've never tried it myself, but I've seen it in operation) so you can replace an /etc/issue message with a login string to have messages customized for each terminal. If you want to get really fancy (like me) you can put in an escape sequence to also set screen colors. Each of my virtual consoles has a differently- colored login prompt. Jay Ts, Director Metran Technology uunet!pdn!tscs!metran!jay