This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Clear Screen
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Magnus Ottosson <it3otma at ituniv dot se>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 14 Apr 2005 17:18:29 +0100
- Subject: Re: [ECOS] Clear Screen
- References: <425E8B28.1000607@ituniv.se>
Magnus Ottosson <it3otma@ituniv.se> writes:
> Hi!
>
> I wan't to know if it's possible to clear the screen or update a
> specific line with eCos?
>
> I have an application that writes data on the screen with printf() and I
> want to clear this data and write new. Is there a clear screen function
> or something like it?
If you are working on a PC with the standard HAL screen support, then
sending a Ctrl-L should do the trick.
If you are using either HyperTerm or minicom over a serial line, then
the escape sequences that Grant has supplied should work.
Finally you could just output 25 linefeeds, which will work whatever
output channel you are using.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss