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

Re: Clear screan question



Ethan Benson wrote:
> 
> On Sat, Jan 27, 2001 at 07:37:59AM -0600, wes schreiner wrote:

> > I'd still like to
> > see a cleaner way to clear the CONSOLE scroll-back.  All of the
> > suggestions so far (clear, reset -Q, ESC[2J ESC[0;0H in /etc/issue) just
> > clear the immediately visible screen, not the console scroll-back.
> 
> how about:
> 
> case "$(tty)" in
>         /dev/tty[0-9])
>         t=$(v=`tty` ; echo ${v##*ty})
>         clear
>         chvt 63; chvt "$t"
>         ;;
>         *)
>         ;;
> esac

A winner!  OK, it flashes if vt 63 is in use, but otherwise it's great.

wes



Reply to: