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

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



On 17 Oct 2002 18:47:45 +0100
Alex Hudson <home [at] alexhudson.com> wrote:

> On Thu, 2002-10-17 at 18:30, Andrew Basterfield wrote:
> > > often. It's client, rather than terminal, dependent (I believe)?
> (I enclose the above line for re-reading, just in case you missed it)
> 
> > Log in to a standard linux VT. Press Ctrl-L or Alt-012. Observe.
> 
> Bravo. I'm still not seeing a screen being cleared. (See above).

try harder. see below :-P

> > Look at 'man ascii'. Note the codes are in octal, not decimal.
> > FF = octal 014 = decimal 012
> 
> FF = octal 014? Are you sure about that? ITYM '0B'. Presumably you
> don't mean 'Form Feed', because that's octal 015 == decimal 013 (just
> in case you can't count like me :p )

Yes I do mean Form Feed which is octal 14 and decimal 12. Apologies for
the confusion, I wasn't talking hex. Form feed is certainly not
oct-015/dec-013 that is CR "Carriage Return",

On my slackware box the man page for 'ascii' says octal 14 is Form Feed
(FF). On my BSD boxes it is described as NP which I presume stands for
'New Page'

In a standard linux virtual terminal (not an xterm as X11 remaps
keyboard) while holding down the alt key type 0 then 1 then 2 on the
keypad. When you release the alt key the screen will clear. This is the
keyboard hardware producing the ascii code 012 (decimal). Pressing
Ctrl+L will have the same effect. L is the 12th letter in the alphabet,
and Ctrl-L produces the same ascii code 012 in decimal which is 014 in
octal which is Form Feed (or New Page).

Now try 007. This is the bell char, and if your internal speaker is
hooked up your PC will beep. Ctrl-G will have the same effect, as G is
the 7th letter in the alphabet.

> I suggest you yourself look up 'man ascii' and find out which code
> produces 'vertical tab' (VT, or standard '\v' - 'man printf', etc.).
> You may then want to look up in your terminal docs the difference
> between a'clear screen' and a 'vertical tab'.

yadadada

> my $search = new Google ('ansi escape');
> $search->feelingLucky();

thankyou for the escape sequence anyhow

--Andrew

Attachment: pgp00018.pgp
Description: PGP signature