From owner-freebsd-questions@FreeBSD.ORG Fri Sep 30 06:21:08 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E83E106566B for ; Fri, 30 Sep 2011 06:21:08 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id E46A28FC08 for ; Fri, 30 Sep 2011 06:21:07 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id p8U6Ka9E098107; Fri, 30 Sep 2011 08:20:36 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 9F133BAD0; Fri, 30 Sep 2011 08:20:35 +0200 (CEST) Date: Fri, 30 Sep 2011 08:20:35 +0200 From: Roland Smith To: Gary Kline Message-ID: <20110930062035.GA5140@slackbox.erewhon.net> References: <20110930044642.GA17359@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <20110930044642.GA17359@thought.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: is there a way to code this .... without curses? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 06:21:08 -0000 --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--