delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/13:31:32

From: mdruiter AT cs DOT vu DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Re: clear screen in bash ?
Date: Thu, 6 Jan 2000 09:14:56 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 14
Message-ID: <851meg$4h@cs.vu.nl>
References: <200001051525 DOT JAA17915 AT darwin DOT sfbr DOT org> <38742647 DOT DDFA40BB AT imrworldwide DOT com>
NNTP-Posting-Host: galjas.cs.vu.nl
User-Agent: tin/pre-1.4-19990927 ("Nine While Nine") (UNIX) (SunOS/5.5.1 (sun4u))
X-Poster-Key: sha1:Hhct4xNYXewkVb9gYCs5Nq0YYXE=
Cancel-Lock: sha1:LOqjKEB8n0gAVdKASrgBWEcndto=
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Colin Forster <colin AT imrworldwide DOT com> wrote:
> 1) alias cls='echo -n ^[[2J' # the ^[ is an esc (in vi I use ^V followed
> by # ^[ where ^ is holding down the cntrl key)

This (and the other options too) only works when ANSI.SYS has been
loaded, which is not always true.

alias cls='command.com /c cls'

-- 
Groeten, *Michel*       _http://www.cs.vu.nl/~mdruiter_
  ____________
  \  /====\  /          "You know, Beavis, you need things that suck,
   \/      \/            to have things that are cool", Butt-Head.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019