Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
print to the terminal in zle
- X-seq: zsh-users 17890
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: print to the terminal in zle
- Date: Fri, 26 Jul 2013 14:48:11 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=ixcMKkKQlwR7xxVCvzyFJvBcjPOdOgr4km4rLD9tK6Y=; b=m98TTLzvo21kIft9DqDKSMEAcpsjaB29chBhrVm7rUu66SxplEaDFueT0G1Sslou5Q NufDBp4z6+BAOX1WrLNdbRLYWKuo/+9Cm8QYUiHuxzAXexHkpdR5XhaG6VcWdKs/G2QZ pjwtCbBa8p/rQ8Y+EyVjh0tRcbjU7qkWyUA/YKraR2J/kq9zGBOML8pFpmIfsynHVmHL F3G1w5Rp88tPsPrUA7OOGWHEiMPYaESo3Nm8FDBJ9Ws0ftwNzFg72kXQH8tHOLLSPSoX +tC0y6qVxBRMsxXHVcyJpIRU9uxLftk2SXDCxJaJ34R1dZ4cH5ecAcfmiVlgA6kSyGAO IleQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hiya,
recently, Debian broke some of my scripts using ZLE in `zsh -i` by adding:
function zle-line-init () {
emulate -L zsh
printf '%s' ${terminfo[smkx]}
}
To /etc/zsh/zshrc
That smkx escape sequence is printed to stdout instead of the terminal.
What would be the correct way to do it?
Doing `printf > /dev/tty` would probably do it but it would be
better I think to be able to write to the fd that zsh currently
has opened to the terminal (usually 10 if it was free upon zsh
startup).
is there a way to do that?
Or an alternative way to set smkx on ZLE init and rmks on
zle-finish?
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author