Re: print something on console at the position I want with printf?
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 21 Jan 2008 11:38:58 +0100
google-rambo88 wrote:
Hi....
I'd like to print something on console at the position I want.
for example in dos, I cann print my message on x,y co¡¤or¡¤di¡¤nate
printxy ( int x , int y , char *msg )
{
gotoxy ( x , y );
printf ("%s", msg );
}
but on Linux console , I don't know how to print on the x,y coordiante I
want...
While you could send the appropriate escape sequences directly, the curses library was developped for this purpose and does this in a device-independent manner.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- References:
- print something on console at the position I want with printf?
- From: google-rambo88
- print something on console at the position I want with printf?
- Prev by Date: print something on console at the position I want with printf?
- Next by Date: Re: RS232 Redirector Program in C using Linux
- Previous by thread: print something on console at the position I want with printf?
- Next by thread: Re: print something on console at the position I want with printf?
- Index(es):
Relevant Pages
|