Path: utzoo!attcan!uunet!tank!ncar!mailrus!cornell!batcomputer!lynch From: lynch@batcomputer.tn.cornell.edu (Tim Lynch) Newsgroups: comp.unix.questions Subject: clearing the terminal screen Keywords: setenv clear vt100 Message-ID: <7007@batcomputer.tn.cornell.edu> Date: 14 Dec 88 21:19:17 GMT Distribution: comp Organization: Theory Center, Cornell U., Ithaca NY Lines: 20 I'm having a problem setting an environmental variable to speed up screen clearing. If I'm working from a hp terminal the following works: % setenv CLEAR `clear` % echo $CLEAR # (and the screen is cleared) But, if I'm working from a vt100, issuing echo $CLEAR does nothing. Furthermore, echo $CLEAR | wc shows that CLEAR is of length zero. The terminfo for the vt100 appears ok because I can issue: % clear and the vt100 screen clears! Actually, I don't have to change terminals; if I have TERM set to hp, then CLEAR is set to the correct escape sequence to clear the screen, whereas if TERM is set to vt100, CLEAR is not set to anything. I've tried this on two different Unix machines. Anybody have a clue as to why I can't set CLEAR when TERM is equal to vt100?