STDIO for LINUX
- Posted by jbrown105 at speedymail.org Aug 22, 2002
- 485 views
I will upload a newer version of my io library, which bypasses ncurses and lets the programmer write to the tty via the standard functions. My updated library fully supports the emulation of get_key() and wait_key() via my stdgetkey.e hack, which does (or tries to do) some really low-level stuff on the terminal. (In the old version, the ncurses-implemented get_key() was called.) There is one problem with my library. It can't stop exu from init'ing ncurses. This does not matter if I'm running a program from my xterm or console login session. But I can't write an actual daemon with exu, as it appears to fail mysteriously. At first I couldn't figure out why, but I finally thought that initscr() or newwin() (both ncurses functions) might be failing, which would cause exu to quit without running my program. Is there any way to stop exu from exiting, if this is the case? If there isn't, then I'll have to write a library and use LD_PRELOAD to override initscr(), newwin(), and God knows what else to trick exu into working. (This is not something I look forward to.) Any help is appreciated. TIA, jbrown -- http://fastmail.fm - The way email should be...