On Thu, Sep 29, 2011 at 09:46:45PM -0700, Gary Kline wrote: > guys, > > i have written a small program using curses; that isn't the problem. > but does anybody onlist know how to code the following in C: > > void foo() > { > > system("stty raw");
man cfmakeraw > . > . > . > system("stty cooked"); > } See f_sane in /usr/src/bin/stty/key.c. The parameters set in f_sane are eventually passed to tcsetattr(3), so see 'man tcsetattr' > anybody? yoa! Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpP0YKWkhsDd.pgp
Description: PGP signature