Hi all: I'm tryin to use Linux instead of Borland/Windows to develop C applications for my University. The first problem that I found is the lack of conio.h in Linux so I don't have getch(). On what library is getch() or similar? Thank you, Martin.
For further discussion, this should be moved to suse-programming-e@suse.com conio is a specific to MS-DOS programming and was never, ever part of Unix/Linux programming. All Unix/Linux applications start with 3 open files, stdin (eg. the keyboard), stdout (the terminal buffered) and stderr (the terminal unbuffered). You should use the standard C stdio functions getchar(), getc(), et. al. For more specific details, again, please move this to the suse-programming-e list. On 12 Jun 2002 at 11:32, Martin.Guillen@siemens.com.ar wrote:
Hi all: I'm tryin to use Linux instead of Borland/Windows to develop C applications for my University. The first problem that I found is the lack of conio.h in Linux so I don't have getch(). On what library is getch() or similar? Thank you, Martin.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/
On Wednesday 12 June 2002 16:32, Martin.Guillen@siemens.com.ar wrote:
Hi all: I'm tryin to use Linux instead of Borland/Windows to develop C applications for my University. The first problem that I found is the lack of conio.h in Linux so I don't have getch(). On what library is getch() or similar?
As mr. Feldman replied,
I agree here. I didn't think of curses. But, I would like to post a short definition. Curses was created by the Berkeley Unix team about 20 or so years ago to provide windowing support to Unix (long before The X Window System, Macintosh, original IBM PC). Addtionally, if you just want an unbuffered getchar(), there are ways you can do that with ioctl and termio. On 12 Jun 2002 at 22:15, David List wrote:
On the other hand, curses and ncurses does what
was meant to do - and then some. Maybe you should try looking into these.
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/
participants (3)
-
David List
-
Jerry Feldman
-
Martin.Guillen@siemens.com.ar