Mail Archives: djgpp/1997/10/07/14:31:23
Alex Holden wrote:
>
>
> The problem is that I have no experience of Linux programming
> whatsoever, and so I need some advice on exactly what I should do/avoid
> doing, to make the job of porting the program to Linux as painless as
> possible. I particularly would like to know how you set up/access the
> serial port in Linux, and whether it's possible to do direct console io
> (gotoxy(), intensevideo(), that type of thing).
as for the console, all you have to do is learn a bit of curses
programming. Curses (available under Linux as ncurses) is a set of
functions to handle several terminal capabilities, such as gotoxy()
(different name actually, but same concept) and the like. Programs that
use curses are very portable.
As for the serial port, I'm afraid this is the tricky bit. Under Linux
you can't access the hardware as easily as under DOS. See below.
> Does anyone know of any 'beginners guide to Linux programming' or 'DOS
> programmers guide to Linux programming' type of document available
> online?
>
yes. Go to
ftp://sunsite.unc.edu/pub/Linux/sunsite/docs/LDP/programmers-guide
and have a look around.
> Thanks, Alex.
>
hope it helps. Good luck.
Regards,
Guido =8-)
--
------------------------------------------------------------------------
Guido Gonzato | Universita' di Bologna (Italy)
guido AT ibogfs DOT cineca DOT it | Settore di Geofisica - fax +39 51 6305058
Linux sysadm & LDP Author | Viale Berti Pichat 8, 40127 Bologna
(Italy)
*** To reply, please remove NOSPAM from my address ***
- Raw text -