Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.xenix Subject: "\f" and Control-L (was: Re: Xenix clear screen function..) Message-ID: <25D6146A.EA5@marob.masa.com> Date: 12 Feb 90 01:42:00 GMT References: <25CFA32B.1493@marob.masa.com> <251@microm.UUCP> <5677@holston.UUCP> Sender: daveh@marob.masa.com Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC, New York City Lines: 22 In article <25CFA32B.1493@marob.masa.com>, I wrote: >On the console screen only, you can echo a Control-L to clear the screen >and move the cursor home. In article <251@microm.UUCP> Bradley W. Fisher writes: >echo "\f" works too if your TERM variable is set right. In <5677@holston.UUCP> Barton A. Fisk writes: >On the ansi console it's easier to just enter echo "\f\c". Sorry if I confused anyone by writing `Control-L', but it represents the very same character that "\f" represents -- the ASCII formfeed. Also, I probably should not have limited my remarks to the console screen `only'. A quick `grep "cl=^L" /etc/termcap' turned up at least 20 matches, indicating that the formfeed is a fairly popular choice for a screen clear command. -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh