From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29382 invoked by alias); 2 Sep 2014 15:52:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33093 Received: (qmail 6886 invoked from network); 2 Sep 2014 15:52:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140902085230.ZM15747@torch.brasslantern.com> Date: Tue, 02 Sep 2014 08:52:30 -0700 In-reply-to: <20140902142635.25576e4c@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: stty not working" (Sep 2, 2:26pm) References: <140901012727.ZM1069@torch.brasslantern.com> <20140901111643.6e2acd9b@pwslap01u.europe.root.pri> <140901112837.ZM1866@torch.brasslantern.com> <20140902142635.25576e4c@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: stty not working MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 2, 2:26pm, Peter Stephenson wrote: } } [...] However, when we enter zle we call zsetterm() --- I } think typically in zrefresh() though the logic for setting up the } terminal seems a bit obscure --- which does... } } /* sanitize the tty */ } shttyinfo.tio.c_lflag |= ICANON | ECHO; } } It's not entirely clear to me we should be doing that: the rest of } zsetterm() assigns shttyinfo to a local variable and then proceeds to } set up for line editing using operations on that Yes, but it appears that user-defined widgets and completion use the global shttyinfo to re-sanitize any time there's an opportunity for an external command to have changed something. So we'd at least need another zle global for this. I don't think it's commonly enough needed to justify the change; the question that started this thread was resolved by "unsetopt zle".