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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17451 invoked from network); 18 Jan 2022 23:17:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Jan 2022 23:17:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1642547855; b=WJXafYvrNeGkQAB6F1SLi3v0K18ZMuMcWdUmIa8eQLhcL2zzLQmp3czRVUp6MvepPZGC4PUavi aG6eTY/iPncnNLI/ZoJwP2DKf09o/k2sIT53pfxCONX86evx5OaexLCuoSDA5SufWWg56+hVci cYVVd/w4Wecdx13xWSl5bhIAmFAUXJYKIVZtyKglkwOhlW0li+8L0iBIlY8QMtMIYIvMaXHDCB jti/xeKvG2O+j50x/THxUvbnBmZx9sBD1svzXgWVyKANvPvNOOw1qFM/m1drtxNIZlUmakG5Ru IiXF/5fI6gksHhN8smc/Ze+ilNxGZA0i5FgU40hMAkCe1w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ua1-f48.google.com) smtp.remote-ip=209.85.222.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1642547855; bh=Z9GQQLiZxbXabUYrydE1ds8zlD6WwU8eusHfEGJm9EI=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=Hk7ek1XlfAc22yYZZl39xXy+I8FlAg6hbQGRml2hn6lj87lq4cMxjA17ebKNF0bivQIGnRz0z0 59x6GTNAoFitDv5RewXHiLFY36PoCem1d2C9q4OHp7ejub0sFVOqZCuU06L0y6cBeAw1As97Gx 04mLk2WsDyrOKrpTrEAEVkBUCwFsSIPafOOUvsJlIaHiXSuND4eSOKZvsSzQ9kCgs+8GCjSDfU dhs2YJqhtDSm43eBvP4yvowdYWHeNgUMvNdTw2HNEvlLVK86pk7fE9d/jxdMdo+/dRdYPOthPE xftr/9Bgvh/hVJvexJrSzyhKL6PH6+Sy8EdATLYym3iJuA==; 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:References:In-Reply-To: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=YQqPTGTKrp4hqAG6CiWEVTrcgN5L+xarpBS5p+Et/wQ=; b=iT2K1R5GPWk3evQuiErq/PjgpD dQQRAA+99a5UBb4N+Dpyh2mgw4v+snza7KGJbGJxU41AQUwbTENzKr8CR8e1QVCCcdU6xSdTXWhVw J9AYp+5UDyFAUnpNouBPUz6/6Xk+Ey3Qy2uW3nmfQ0tSbucR4xeUV2ltwP3Bn+IOPjVchn1iyBeq6 u7GZ2lKKKPUsPyiFsE723vneysDIRmBpb1fP8eyJL3a2eLUXVVSxgGY/50+lfqCvD+2fG8v+abCkq WbItOziLb8PRUKCxzysLlllrFO3bnvBJ610K0/XDfGOmtfdDy1bgbZWiESWi2M3+12COwEvefi17l 5vFfn/WQ==; Received: from authenticated user by zero.zsh.org with local id 1n9xjL-000Ndv-E9; Tue, 18 Jan 2022 23:17:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ua1-f48.google.com) smtp.remote-ip=209.85.222.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ua1-f48.google.com ([209.85.222.48]:45899) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1n9xix-000NIy-W2; Tue, 18 Jan 2022 23:17:12 +0000 Received: by mail-ua1-f48.google.com with SMTP id x33so1062684uad.12 for ; Tue, 18 Jan 2022 15:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YQqPTGTKrp4hqAG6CiWEVTrcgN5L+xarpBS5p+Et/wQ=; b=j4aMDl48pyZ/Ad8AvMyZV+iUdQglz4TW7Ee4eiT866Vok34BUw5TyTZbm8mXgj4nEz VDss/BbWxjbs08K6IZQX2sijq+h/nTADD8M1MqKPwQf58iHGIm3p3copZz0oZp3pbVP3 mSxF1eyqGmuWH4NlKmHTNVuaL5DOBeUAgdoZp5NJgeeq8wnSbfAnpjMDlU1vLOZeo60v vaxipuKeuLLSGDBWHxjaz2M4syWpsZ308PHz1NwMiilK5Or75A7OxLHZuEcXgKYmSBp5 mqogjBbYPNbVFmn8NMV0HPkSBxFcfVqfT8pScJWhEHlnPi1VrN2Qz7R7uaJV6Q/A9irR RE6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YQqPTGTKrp4hqAG6CiWEVTrcgN5L+xarpBS5p+Et/wQ=; b=kaeS4tyLOzN05TltJXrjFXIY8jTarw3uF5NaIsPJCdD3VRXD/pRi3LEu/a8fNM/Jok WRBjFJ7Atrtzv7nbELsyPYPKg4e1M7dS+CZLws6+timMkWGeg7/8yxxSeadI/wg0sruK POIOBJ8uX8/y8AQGJ6GpRqN7V73HTkaYMubBxTksvex7+I6PCj5Im7xHUp7V7Ck8Acvp ra2TY/3BHcy9q7HE0W49vlc+7KZa3O4EVySxkf1el72EAu9djsnzJvb25h7/dQgn74cw 44q5e9TVsGdV+xBmGfSKgVDP8KBncpMRh1I4Qpk3dOm6eEn+lh+Pn2B4S/rXR2f8xawg ETEQ== X-Gm-Message-State: AOAM5306k8kQGG6KXNc08LP1dHH/EuPK4vhcdcXhv/GFLt5mtSGL2Q89 IAm+ua/y0XnVUbjno78HNyzJMSpfbe6FthXSpuw= X-Google-Smtp-Source: ABdhPJxkTglB9PoVGJCsHN/A5+shfeKeryzJdvHaJS54pp7PBwWcRBWhfZE/KOuDvgH3pAMN4F3Uo1SBAwQQLhVNioA= X-Received: by 2002:a05:6102:953:: with SMTP id a19mr10823692vsi.4.1642547830670; Tue, 18 Jan 2022 15:17:10 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab0:2551:0:0:0:0:0 with HTTP; Tue, 18 Jan 2022 15:17:10 -0800 (PST) In-Reply-To: References: <20220118222414.2507-1-mikachu@gmail.com> From: Mikael Magnusson Date: Wed, 19 Jan 2022 00:17:10 +0100 Message-ID: Subject: Re: PATCH: Allow using STTY= to save terminal state To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49696 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 1/18/22, Bart Schaefer wrote: > On Tue, Jan 18, 2022 at 2:25 PM Mikael Magnusson wrote: >> >> A person in IRC had issues with a command (fastlane) changing some random >> stty settings [...] >> it would be nice to be able to do this without having to specify a random >> stty setting to actually change when starting the command > > Umm, isn't this what "ttyctl -f" is for? What have I missed? I remembered about STTY= existing, and its documentation does not reference ttyctl (in fact nothing references ttyctl except for the ttyctl entry). That said, running ttyctl -f and ttyctl -u around a command is a bit more work than simply prepending STTY= (which currently just causes the stty help text to be printed, which doesn't seem very useful). -- Mikael Magnusson