On 17 Oct 2002 17:59:14 +0100 Alex Hudson <home [at] alexhudson.com> wrote: > 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)? Log in to a standard linux VT. Press Ctrl-L or Alt-012. Observe. Look at 'man ascii'. Note the codes are in octal, not decimal. FF = octal 014 = decimal 012 > 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..) This works for me, thanks - where do I find the other terminal ESC sequences? --Andrew
Attachment:
pgp00014.pgp
Description: PGP signature