zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: print to the terminal in zle
Date: Fri, 26 Jul 2013 17:00:09 -0700	[thread overview]
Message-ID: <130726170009.ZM8277@torch.brasslantern.com> (raw)
In-Reply-To: <20130726203931.3e05f151@pws-pc.ntlworld.com>

On Jul 26,  8:39pm, Peter Stephenson wrote:
} Subject: Re: print to the terminal in zle
}
} On Fri, 26 Jul 2013 14:48:11 +0100
} Stephane Chazelas <stephane.chazelas@gmail.com> wrote:
} > recently, Debian broke some of my scripts using ZLE in `zsh -i` by adding:

I have to admit that I'm with Frank in being confused about "scripts using
ZLE in `zsh -i`".

} It's just occurred to me that maybe zle special functions should be run
} with stdout and stdin set explicitly to the terminal.

I can't make up my mind about this one.  If anything is to change, they
should have stdin/out set to whatever ZLE is using, not necessarily to
"the terminal" (though perhaps those never differ?).

} Arguably they have no business knowing about a redirected stdout or
} stdin since they run in a context where that's meaningless.

To the extent that "zsh -i" can be used to force interactivity, isn't
the point of doing so to have the shell read standard input "as if" it
were a terminal device even when it is not one?


  reply	other threads:[~2013-07-27  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-26 13:48 Stephane Chazelas
2013-07-26 17:05 ` Peter Stephenson
2013-07-26 17:36 ` Frank Terbeck
2013-07-27 16:20   ` Stephane Chazelas
2013-07-27 18:58     ` Greg Klanderman
2013-07-26 19:39 ` Peter Stephenson
2013-07-27  0:00   ` Bart Schaefer [this message]
2013-07-27 16:30   ` Stephane Chazelas
2013-07-27 17:02     ` Stephane Chazelas

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=130726170009.ZM8277@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).