[comp.os.minix] Clearing screen codes

tgcpwd@rw9.urc.tue.nl (Wim van Dorst) (02/25/91)

In article <6854@munnari.oz.au> bevan@ecr.mu.oz.au (Bevan Johnson ANDERSON) writes:
>How I tell the MINIX console to clear the screen?
>What escape sequences to I use?

<esc> [ H <esc> [ J

<esc>[H to move the cursor to left upper corner
<esc>[J to clear the screen from the cursor to the right lower corner

nb. Some version also accept "<esc> [ 2 J" to clear the entire screen,
    e.g the virtual console driver does.

Met vriendelijke groeten, Wim 'BLue Baron' van Dorst

-- 
---------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-:       baron@wiesje.hobby.nl           tgcpwd@urc.tue.nl       :-)
---------------------------------------------------------------------

peter@pa3ebv.nl.mugnet.org (Peter J. de Vrijer) (03/02/91)

In article <6854@munnari.oz.au>, bevan@ecr.mu.oz.au (Bevan Johnson ANDERSON) wrote:
> Hi All.
> 
> How I tell the MINIX console to clear the screen?
> What escape sequences to I use?
Well here Minix virtual terminals are the same as vt100 (I think). So I use 
<ESC>[H<ESC>[J<ESC>[H
[H sends the cursor home
[J clears the screen from the cursor to the end

This works perfectly on my system.
> 
> Thanks in advance,
No problem.

Regards from Peter.