From: Grant Edwards <grante@visi.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Re: Clear Screen
Date: Thu, 14 Apr 2005 15:56:00 -0000 [thread overview]
Message-ID: <20050414155549.E1AF648F83@rivatek.dnsalias.net> (raw)
In-Reply-To: <425E8B28.1000607@ituniv.se>
In gmane.os.ecos.general, you wrote:
> I wan't to know if it's possible to clear the screen or update a
> specific line with eCos?
Depends on what screen you're using.
> 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?
Assuming you're using an ANSI terminal, writing such functions
is pretty simple:
void clearScreen(void)
{
printf("\033[2J")
}
void clearToEOL(void)
{
printf("\033[K")
}
void moveCursor(int row, int col)
{
printf("\033[%d;%dH",row, col)
}
and so on.
--
Grant Edwards grante Yow! Here I am in 53
at B.C. and all I want is a
visi.com dill pickle!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2005-04-14 15:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 15:24 [ECOS] " Magnus Ottosson
2005-04-14 15:56 ` Grant Edwards [this message]
2005-04-15 8:40 ` [ECOS] " Magnus Ottosson
2005-04-15 8:58 ` Magnus Ottosson
2005-04-15 14:21 ` Frank Pagliughi
2005-04-15 14:40 ` Frank Pagliughi
2005-04-16 11:32 ` Grant Edwards
2005-04-15 14:41 ` Grant Edwards
2005-04-14 15:57 ` [ECOS] " Gary Thomas
2005-04-14 16:03 ` [ECOS] Insight gdb Preferences under Linux Hoat Frank Pagliughi
2005-04-14 16:16 ` dirk husemann
2005-04-14 16:18 ` dirk husemann
2005-04-14 19:46 ` [ECOS] Clear Screen Nick Garnett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050414155549.E1AF648F83@rivatek.dnsalias.net \
--to=grante@visi.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).