Hello,
I would like to do character-at-a-time input. I'm programming in C++, so
curses doesn't seem to work properly. I've heard that charater-at-a-time
input is not very portable. I program primarily in Linux, but I'd like to
know how to do it in Solaris and SunOS and other unices as well. What
I'm really looking for is some example code; I've heard I can accomplish
what I want to with ioctl() and fcntl(), but I haven't been able to
figure it out. I want to be able to wait for a key press on stdin with
select(), and then read the character in immediately without waiting for
enter to be pressed.
What is the most portable way to do character-at-a-time input without curses?
please respond by email, as my newsfeed is sometimes sketchy.
Duke School of Engineering '98 http://wrayland.dorm.duke.edu