Re: print something on console at the position I want with printf?



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

.



Relevant Pages

  • Re: ICH302D doesnt display
    ... What does the line from the SYSLOG look like, ... Do you have an automation product? ... The ICH302D follows msg "ICH301I Maximum password atttempts by SPECIAL ... which also does *not* appear on the console. ...
    (bit.listserv.ibm-main)
  • Re: ICH302D doesnt display
    ... I'm guessing it will be the routing codes assigned to the console. ... Subject: ICH302D doesn't display ... The ICH302D follows msg "ICH301I Maximum password atttempts by SPECIAL ...
    (bit.listserv.ibm-main)
  • Re: Viewing and filtering a router log for GET/
    ... Console means msg sent to the console port ... Monitor means msg sent to a vty line with monitoring ("terminal monitor" in ... Trap means SNMP traps msg ...
    (comp.dcom.sys.cisco)
  • Re: ICH302D doesnt display
    ... Ulrich Krueger ... It appears that RACF's msg "ICH302D Reply Y to allow ... does *not* appear on our console. ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • print something on console at the position I want with printf?
    ... I'd like to print something on console at the position I want. ... printf ("%s", msg); ... but on Linux console, I don't know how to print on the x,y coordiante I ...
    (comp.os.linux.development.apps)