[GRLUG] Project

andross at gmail.com andross at gmail.com
Sat May 31 12:15:32 EDT 2014


On Fri, May 30, 2014 at 3:55 PM, L. V. Lammert <lvl at omnitec.net> wrote:

> Has anyone ever tried to port a straight C program to Linux? There apears
> to be a book in 1995, ..
>
> Main issues would be:
>
>  * UI - the old system has an ANSI graphic UI
>

There's no ANSI standard graphics library. I assume you meant a ASCII UI,
but you might also mean one of the early graphics libraries provided by
compilers, like the Borland Graphics Interface (graphics.h in Turbo C). If
it's ASCII graphics, the ncurses library will do what you want. If it's
polygon graphics, SDL will work fine (also great for handling user input).

 * MT - it used ctask for multi-tasking
>

You'd probably have to ditch that and use something more modern like
pthreads (All hail RMS, deliverer of POSIX).


>  * SER - it used two or three serial ports
>

Again, POSIX saves the day. Opening a serial port using C on a GNU/Linux
environment is criminally simple. We're talking `int fd =
open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_NDELAY);` simple.

The main reason is that it is almost possible to create a MSC-6
> environment to compile now, and I just realized that my machine from 20
> years ago I have been keeping on the shelf for this eventuality is dead.
>

>         TIA!
>
>         Lee
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20140531/c2ca1cc1/attachment.html>


More information about the grlug mailing list