This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clear Screen


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]