From: Maciej Hrebien <m_hrebien@wp.pl>
To: linux-assembly@vger.kernel.org
Subject: Re: How to move the cursor
Date: Tue, 23 Sep 2003 10:02:12 +0200 [thread overview]
Message-ID: <3F6FFE04.518EB744@wp.pl> (raw)
In-Reply-To: 20030923014209.GA2978@frajola.lab.ic.unicamp.br
"R@f@el D1n1z" wrote:
>
> Hi all,
> I would like to know how to change the position of cursor on the screen.
> I'm looking at this howto:
> http://www.linuxassembly.org/articles/rawkb.html
> But I could not find anything about this subject.
Try escape sequences, ie:
char c[]="\x1b[2B";
write(STDOUT_FILENO,c,sizeof(c));
will move cursor down 2 rows. See man console_codes for more.
--
Maciej Hrebien
next prev parent reply other threads:[~2003-09-23 8:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-23 1:42 How to move the cursor R@f@el D1n1z
2003-09-23 8:02 ` Maciej Hrebien [this message]
2003-09-23 18:48 ` peter w krause
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=3F6FFE04.518EB744@wp.pl \
--to=m_hrebien@wp.pl \
--cc=linux-assembly@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.