Skip site navigation (1)Skip section navigation (2)
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>
References:  <20110930044642.GA17359@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 29, 2011 at 09:46:45PM -0700, Gary Kline wrote:
> guys,
>=20
> 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:
>=20
> void foo()
> {
>=20
> 	system("stty raw");

man cfmakeraw=20

> 	.
> 	.
> 	.
> 	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'
=20
> anybody? yoa!

Roland
--=20
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)

--wRRV7LY7NUeQGEoC
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk6FX7MACgkQEnfvsMMhpyXV/ACglSXE4I5WarrpuvVkool0i5Lk
Ko8An3C0L8M6emD7ishbdVc4Q0YH+kFk
=H0hZ
-----END PGP SIGNATURE-----

--wRRV7LY7NUeQGEoC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110930062035.GA5140>