Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Stacy D. Coil
Sun, 30 Aug 1992 21:24
Setting FNDELAY with fcntl for curses
Author: Stacy D. Coil
Date: Sun, 30 Aug 1992 21:24
Date: Sun, 30 Aug 1992 21:24
24 lines
1396 bytes
1396 bytes
I am trying to emulate the nodelay function in the System V implementation of curses, but I am having no luck. I assume that I need to set a flag to make non-blocking reads with stdin. I have tried using fcntl() with no avail. This is what I think should work - fok = fcntl(stdin, F_SETFL, FNDELAY); I know that this is wrong, but I cannot come up with the correct call. Could someone please explain what I am doing wrong and show me the correct code? Thank you Stacy ------------------------------------------------------------------------------- Stacy D. Coil The Ohio State University Student Programmer Electrical Engineering Computer Facilities coil@ee.eng.ohio-state.edu Columbus, Ohio coil@cis.ohio-state.edu (614) 292-1416 -------------------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads