Mail Archives: djgpp/1998/04/30/04:01:56
Hi!
> Is it true that gotoxy() doesn't exist on UNIX environments? And that the
> only way to port my DOS code is to rewrite it using the complicated curses
> library? For Christ's sake, I just want to move the cursor! I don't want to
> create buffered windows! Does anybody have a simpler solution?
Hmm, you might use the xterm-terminal emulator.
It understands some of the ANSI/VT100 escape sequences that can
be used for cursor movements.
An implementation of gotoxy() could look like this:
void gotoxy (int x, int y)
{
printf ("\033[%d;%dH", y, x);
}
Jens
--
| | | Jens Bischoff | Daimler-Benz Aerospace Airbus |
| --<O>-- +-----------------+---------------------------------+
| | | Aerodynamic Data Department (EFD) |
| Dasa Airbus | Huenefeldstrasse 1-5 D-28199 Bremen (Germany) |
- Raw text -