is there a way to code this .... without curses?

Roland Smith rsmith at xs4all.nl
Fri Sep 30 06:21:08 UTC 2011


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110930/1a7c8df9/attachment.pgp


More information about the freebsd-questions mailing list