From: Guido Gonzato Newsgroups: comp.os.msdos.djgpp Subject: Re: Writing code for both DJGPP and Linux. Date: Tue, 07 Oct 1997 10:23:52 +0200 Organization: Universita' di Bologna (Italy) Lines: 43 Message-ID: <3439F198.1458516D@ibogfs.cineca.it> References: <19971006120324 DOT 19697 DOT qmail AT hotmail DOT com> NNTP-Posting-Host: ibogeo.df.unibo.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 ***