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...

Thanks.

You want the ncurses library. Not only does it do what you are asking, but
you can draw boxes too!
--
Chris
.



Relevant Pages

  • Re: How To Determine if EXE is Windows 32-bit console application
    ... the .EXE is a 16-bit DOS program, ... and 7 for a Win 32 Console app. ... 4DOS can run only DOS programmes, and doesn't know what DOS extender is ... When I run a Windows 32-bit console application in plain ol' 4DOS, ...
    (comp.os.msdos.4dos)
  • Re: Terminal server client and old dos programs
    ... At the console it works in windowed and in full mode, ... The program dos not reference to any ini file on the client side. ... Since DOS doesn't see Windows Printers, ...
    (microsoft.public.windows.terminal_services)
  • Re: Batch file (CMD) output into HTA
    ... be a group for console operations, ... types who like to use command line operations. ... are also using VBS and just don't know where else ... I open a console window on Win9x it's DOS. ...
    (microsoft.public.scripting.vbscript)
  • Re: Running MS Dos from XP Pro
    ... Since XP or NT have no DOS mode to boot into, ... There is the Recovery Console you can start when you boot XP using the XP ... Real-Mode DOS died with Windows 98SE. ...
    (microsoft.public.windowsxp.general)
  • Re: WinXP boot disk, WinXP DOS
    ... MSDOS.SYS file like DOS 6.22. ... traditional commands if I am in a DOS session in Windows, ... There is a 32-bit command console. ... As for your bootup disk: ...
    (microsoft.public.windowsxp.general)