From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A55215812E for ; Sun, 11 Jun 2023 16:47:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA919E0872; Sun, 11 Jun 2023 16:47:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4E64E088C for ; Sun, 11 Jun 2023 16:47:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 08D373413E0 for ; Sun, 11 Jun 2023 16:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97A52A91 for ; Sun, 11 Jun 2023 16:47:14 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1686473015.b6fe181d26b6819ca0086a2fc9b664ee3f84a555.sam@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: ecma48-cpr.c X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b6fe181d26b6819ca0086a2fc9b664ee3f84a555 X-VCS-Branch: master Date: Sun, 11 Jun 2023 16:47:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a0c26e74-04ff-43b9-82e4-61f707158458 X-Archives-Hash: 8a0e9f26c1977d18d40de586de0b508f commit: b6fe181d26b6819ca0086a2fc9b664ee3f84a555 Author: Kerin Millar plushkava net> AuthorDate: Sun Jun 11 08:43:35 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Jun 11 08:43:35 2023 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=b6fe181d ecma48-cpr: Disable flow control in the terminal While at it, don't bother disabling ECHOE, ECHOK and ECHONL, for they do nothing in the case that ICANON has been disabled. Signed-off-by: Kerin Millar plushkava.net> ecma48-cpr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecma48-cpr.c b/ecma48-cpr.c index f397ab7..7d32c63 100644 --- a/ecma48-cpr.c +++ b/ecma48-cpr.c @@ -79,8 +79,7 @@ main(void) { * thereby ensuring that its input is always immediately available, * with no processing having been performed. */ - new_tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL); - new_tty.c_lflag &= ~(ICANON); + new_tty.c_lflag &= ~(ECHO | ICANON | IXON); /* * Set an interbyte timeout of 1 decisecond. The timer is started only