Mail Archives: djgpp/1995/03/06/17:40:28
On Mon, 6 Mar 1995, Paulo Sergio wrote:
> But the party is just beginnig. I have 2 classes that are not very
> simple to convert: The first deals with ints. The first case is a
> serial line manager but I have others... The second has to do with
For example of a serial IO routine under go32, look under the serial.c
module of Ladybug 1.00 (ldbg100.zip.) The code is in plain C.
> display positioning, clear and scrolling.
You can:
1. Use ANSI escape sequences (the sequnences can be found in most
DOS manual, and example can be found in serial.c of Ladybug 1.00 --
see above.)
2. Use the routines declared under conio.h (gppconio.h ?)
3. Uses int86, int86x calls to call BIOS interrupt 10
4. Write directly to the screen, using the Screen... function calls.
> Is there any need to know about this to handle ints under djgpp or is there
> any simpler way?
If the display routines deal mostly with serial IO, the best thing to do
would be using ANSI escape sequences. Otherwise, the routines under
gppconio.h will do just fine.
Hope that helps,
Long.
+--------------------------------------------------------+
| Long Doan ldoan1 AT osf1 DOT gmu DOT edu |
| ld AT netrix DOT com |
+--------------------------------------------------------+
- Raw text -