zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: stty not working
Date: Tue, 02 Sep 2014 08:52:30 -0700	[thread overview]
Message-ID: <140902085230.ZM15747@torch.brasslantern.com> (raw)
In-Reply-To: <20140902142635.25576e4c@pwslap01u.europe.root.pri>

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".


  reply	other threads:[~2014-09-02 15:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01  2:38 Сергей Новиков
2014-09-01  8:27 ` Bart Schaefer
2014-09-01 10:16   ` Peter Stephenson
2014-09-01 18:28     ` Bart Schaefer
2014-09-02  8:47       ` Peter Stephenson
2014-09-02 13:26       ` Peter Stephenson
2014-09-02 15:52         ` Bart Schaefer [this message]
2014-09-02 16:04           ` Peter Stephenson
2014-09-03  1:32             ` Bart Schaefer
2014-09-01 10:02 ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140902085230.ZM15747@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).