[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] making /etc/issue clear the screen



On Thu, 2002-10-17 at 04:04, Andrew Basterfield wrote:
> I know I can clear the screen from the console with Ctrl-L or Alt-012 to
> produce the ASCII character 'form-feed'.

How does Ctrl-L or Alt-012 clear the screen? Neither should have that
effect. Alt-012 is just a carriage return, Ctrl-L is an term refresh
often. It's client, rather than terminal, dependent (I believe)?

Probably what you want is an ansi ESC[2J or something - perhaps try
something like:

perl -e 'print chr(27)."[2J".chr(27)."[0;0H";'

(e.g., that appears to clear my screen, perhaps pop that output to a
file and append the rest of your issue to it..)

Cheers,

Alex.

Attachment: signature.asc
Description: This is a digitally signed message part