[Re: ctrl-l question]

Matt Graham danceswithcrows@usa.net
10 Sep 2001 14:21:47 EDT


Ben Pfaff <pfaffben@msu.edu> wrote:
> Mark Szidik <szidikm@mlc.lib.mi.us> writes:
> 
> > I am working on a Expect script and the Expect book says that
> > sending the process a ^l  (control-l character) may fix the
> > problem.  How do I express this character in my script?  Expect
> > uses TCL, so I can assign a variable a hex code, but I have no
> > ideal just what code the ^l is and what it even does.
> > 
> > Anybody know what a ^l is and its hex value?
> 
> Just count letters forward from the beginning of the alphabet.
> ^l is character 12, the same as form-feed.  You can express it as
> hex `C'.
> 
> Alternatively, take the ASCII character value for the
> corresponding capital letter and subtract 64.  `L' is ASCII 76
> and 76 - 64 = 12.

Please note that Mere Mortals may find it easier to execute "man ascii", which
should work on Solaris, HP-UX, Linux, and *BSD at least....

-- 
Matt G / Dances With Crows
There is no Darkness in Eternity/But only Light too dim for us to see
"I backed up my brain to tape, but tar says the tape contains no data...."