From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31644 invoked from network); 19 Jan 2022 01:11:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2022 01:11:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1642554689; b=LxJfvz1OexZe6I0ibtX3R/dqH2lamdrbKlwusmeZnD1Z1e0V46yAYX5F94g++Wnk3Z4VSf5ZRm vGWaXXh9S5dzj8di242/5atFMfWA1Bcpa2dGAyBcPfBSfefoQIDPWT74iqrCLU2/bHePEHbxCF vnqq32Hsr0pbSBTdEF4V6LBrW+HIfGMaQlM9lL0s1e3zo0kCihD5DmW1ahGBSmcowB652Io8jH oqxgpdpNT8L4JprzwEQXLYWUaca3CsJRPwZsIQXKX1BbubDXJAzkBXB+8zfDtHaWtYzZfrDJy2 BMBKbUAzQ4m/cFvAG+NXBMCCz9cYnVCwoF+kKoDLp9TSGw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1642554689; bh=MpqgvAwlGgL+tM7cOvdxaFV1NijmkF62///nMjBQ1N8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=BzjGqAitWXERE8UTQ3JzpacZORUbXMvajSE3Oepr279781ntoszMShcPB+E6xf94emyx2H2fs9 83EQhjsFH9xM2K9iMLQnUWNLIyNd9Yv4WqAOLxkgAZe9JDLSzaLAQrx5oXFze1IkiuRrnl/pWc HFdd/WhXITFGV3jIF1q6fJgxuqoXEg0rHVJ4IwQBvQkY2GGlU936y8X2aJ9KjPfHtTn2QyGlOd B5rh0w2vtbac8ffPt877eqmbUVfSrhluXlGup0xI97qbuYC3Ofgb2zeyCvJQMCgdwectm4D9bt rcFk2EOgV+ne1szc7gjqw+WmdQGKOo+RaHbAEV9kMNaiaw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KR7MWaTqovZjd1Dc2qJ4UfS+yRwqpj7DW7jNzgsCssw=; b=eBpQvbSxkBdMXnmuWFrvO6dxBe 4hvYxOH77Qomd5yGrnT81ghJ5YvWkMxCD2GBNkSPekAlMjt7fVh35HPVEvUe9r7ZhHAj8CNvXqt1x Qp9M3PDKbRriPGrlnYfaU1j+NtoFW7Zreg1etTYgBwtsuOFffraQB0J+wmmTniciVq31Oh6ojYAur YGHV9uzQfm/Oa8k4UrmNZvz+Au7slq+dsPOUFt3GZMFteLVEVRD6QyyOT+sSn5oXKMpKbfbQpqmv7 uymlH3XxHfOfiCaBMHctVIplJ13h4jDKYEOKvU0bsqQhkBvj8U0XTx+LFekQ9SGF85DnQgHOISkpr BYdGPNuw==; Received: from authenticated user by zero.zsh.org with local id 1n9zVY-0000aJ-R6; Wed, 19 Jan 2022 01:11:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f181.google.com) smtp.remote-ip=209.85.219.181; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f181.google.com ([209.85.219.181]:46597) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1n9zUz-0000HB-9I; Wed, 19 Jan 2022 01:10:54 +0000 Received: by mail-yb1-f181.google.com with SMTP id p5so2229965ybd.13 for ; Tue, 18 Jan 2022 17:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KR7MWaTqovZjd1Dc2qJ4UfS+yRwqpj7DW7jNzgsCssw=; b=62Vv/Htx36CPXUAmtEinxWfEpRqp1ZLOGkA5w+5DR4Cez+/3SQxqXxlBvu82YlCPyY eNU2xScWTUNPpbTwxzY29AwoutlCjqOaNIk8trZWTbL4EEGWQxNi5krDhDmVybhKrukf 1wQq5i4bTCSu6QPAluqVr3cfb/xXO0ZkuPRY3fGSmt3eHl5UlQ8Kse33jeHa4SLWu9uN FLaARgKr2jevrTVVNCLh5INAdQG+I5xoM8OMPxQkAmHBim7Hare4DYzeFO0m1cJfacgk 4aHZNfXcJItGoHWjcX0E8zGdU48cCzcD+shkew0sxvHYDxtOEiy/jnLpBtWT9CNRagFM klVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KR7MWaTqovZjd1Dc2qJ4UfS+yRwqpj7DW7jNzgsCssw=; b=Jcv2sQmY7w7n+Sak7mwO1k0oFQSMLkOwCU96EunGRPauf016FIrO6X6EOd2dwhPY7u zCrl0jMSnshThU3IK9shrG8HbWz5bU+q8D9wiEC46h6Y+IaVzXb6CpgSor/LMy9TlhFt u29qL253KDAYtMqK5NI1Y+Uf6H5yf/Jj80/DADp/caGgkNtXOVPrJSNOmtUHvpklaolJ 0Gqj9IITTSDjplioGOwlvrbjFaAPpKgP22ja7/G12vIZYRzkaYBr3wIwOs4uhLgFxVl+ 51TQY+4y3ObHQbDLZT/ULJc/6UxwAmYSYG70lImnp8nm8X4jTH9TL6x/HaUQbedCo83A hDLw== X-Gm-Message-State: AOAM533gBZzyxX8FWe/WtZrLu7TDCUl9abSQUSda6OmvwnDU/mm+50rK OjXiqnfOxPl2XoODOSyfMZEZuCDZ6Hul/iPqGp72HA== X-Google-Smtp-Source: ABdhPJyct2HwSPCMpjPi4syqFZZnhowa+I45qUGA+ySn75UikxVTir8ELP1HywyHBviIy2mO6YrQe/FU9Prb2cAIN08= X-Received: by 2002:a25:e709:: with SMTP id e9mr20484901ybh.147.1642554651641; Tue, 18 Jan 2022 17:10:51 -0800 (PST) MIME-Version: 1.0 References: <20220118222414.2507-1-mikachu@gmail.com> In-Reply-To: From: Bart Schaefer Date: Tue, 18 Jan 2022 17:10:40 -0800 Message-ID: Subject: Re: PATCH: Allow using STTY= to save terminal state To: Mikael Magnusson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49697 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Tue, Jan 18, 2022 at 3:17 PM Mikael Magnusson wrote: > > [...] running ttyctl -f and ttyctl -u around a > command is a bit more work than simply prepending STTY= The point of ttyctl -f is to run it from .zshrc and only use ttyctl -u when absolutely necessary. You're not supposed to need to switch it on and off. (I wonder, though, if the thread from users/27471 might get tangled up here. Something about the startup sequence seems to have got wonky.) > ([STTY=] > currently just causes the stty help text to be printed, which doesn't > seem very useful). Agreed that running stty with no arguments in that instance is not helpful.