DOS to Linux migration library

Alan Dayley plug-devel@lists.PLUG.phoenix.az.us
Sat Mar 22 10:33:02 2003


On Saturday 22 March 2003 08:56, Rob Wehrli wrote:
> Alan,
>
> Have you seen the following?
>
> Take Care.
>
> Rob!
>
>
> -----------------------------------------------------------------------=
-
> --------
>
> "_sleep()" can be replaced by a number of Linux (UNIX) functions,
> depending on the time resolution. Below are some of these functions
> (reference the man pages).
>
> sleep() - second resolution
> usleep() - microsecond resolution
> nanosleep() - nanosecond resolution
>
>
> getch() is getchar() or use the readch() function I provide below.
>
> kbhit() is not available on Linux (UNIX), it is a DOS function. Below i=
s
> some code (functions) to replace the "kbhit" functionality (this code i=
s
> from a book called "Beginning Linux Programming", from Wrox Press --
> www.wrox.com -- you can download the Code Examples from the Book at thi=
s
> Site):
>

Yes, I have begun tracking some things down and I even own that book.  Th=
anks.

With possible help from Jess, I am sure I can build an API to translate t=
he=20
DOS screen calls to curses calls.

Alan