Date: Fri, 30 Sep 2011 08:20:35 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: is there a way to code this .... without curses? Message-ID: <20110930062035.GA5140@slackbox.erewhon.net> In-Reply-To: <20110930044642.GA17359@thought.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
iEYEARECAAYFAk6FX7MACgkQEnfvsMMhpyXV/ACglSXE4I5WarrpuvVkool0i5Lk
Ko8An3C0L8M6emD7ishbdVc4Q0YH+kFk
=H0hZ
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110930062035.GA5140>
