From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: stty size doesn't work
Date: Sun, 23 Oct 2022 13:47:10 -0700 [thread overview]
Message-ID: <80a69953-a19c-f5c3-17fb-747633527712@eastlink.ca> (raw)
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
I doubt this is zsh's problem but she may have a solution just the
same. I do this in my 'i' function:
width=${=$( stty size )[2]}
... and it works fine, however if I call the function thusly:
_function_test ()
{
local integer i=0
while read aa; do
let i++
eval ${=aa} 2> /dev/null
done
}
$ _function_test <<< "i path"
... 'width' is zero. I think this is some 'stty' issue, still the
function will be running in a terminal and the terminal has a width so
it puzzles me that no width can be reported.
[-- Attachment #2: Type: text/html, Size: 956 bytes --]
next reply other threads:[~2022-10-23 20:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-23 20:47 Ray Andrews [this message]
2022-10-23 22:21 ` Roman Perepelitsa
2022-10-24 2:59 ` Ray Andrews
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=80a69953-a19c-f5c3-17fb-747633527712@eastlink.ca \
--to=rayandrews@eastlink.ca \
--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).