From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26529 invoked by alias); 26 Jul 2013 13:48:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17890 Received: (qmail 22849 invoked from network); 26 Jul 2013 13:48:21 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.169 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=ixcMKkKQlwR7xxVCvzyFJvBcjPOdOgr4km4rLD9tK6Y=; b=jVyW2XDgWNXMPDHvF1OEx1/sJJsOTrzJRHrJy5GVpF1xC2/aZblgH0Djtc1d1HiPP9 8I4NnEUhR8YjQG6T2w7XOYBknXTHyvTZnUqHCtO/j0w8lq58wveub0L2ViLKYfHVhj6l 0pHCFzU92qqIy9bFfSJ570w3DL3DHJoutpCZAxPQaKTr8mYzNTz6trRmNCJ2Cc04mcaT FF2ELz0WoTIX3zTmtBW9jzaEwq7yOzH3M1xKLtkVd8fKqp/au5BTPwot2/X1YxPadgJq orG3kvRlzDeSjHQnT3cudQQqnwYHiL35vS3NXS3PTcY1Rd0X4YQSFO7JhU6UqS8SyVnY 5sAA== X-Received: by 10.180.210.148 with SMTP id mu20mr5729181wic.38.1374846493205; Fri, 26 Jul 2013 06:48:13 -0700 (PDT) Date: Fri, 26 Jul 2013 14:48:11 +0100 From: Stephane Chazelas To: zsh-users@zsh.org Subject: print to the terminal in zle Message-ID: <20130726134811.GA14136@chaz.gmail.com> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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