Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read -s doesn't work with -t?
- X-seq: zsh-workers 24568
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: read -s doesn't work with -t?
- Date: Sun, 17 Feb 2008 18:16:55 -0800
- In-reply-to: <20080217172225.1d8a8e4e@pws-pc>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0802151327q1c6d3a19oa67a977b82c52f67@xxxxxxxxxxxxxx> <080215191216.ZM29994@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0802152333g7f759674r806f61f9f76f86f2@xxxxxxxxxxxxxx> <237967ef0802152350i1fec3369oba9268400a209b2e@xxxxxxxxxxxxxx> <080216093755.ZM17001@xxxxxxxxxxxxxxxxxxxxxx> <20080217172225.1d8a8e4e@pws-pc>
On Feb 17, 5:22pm, Peter Stephenson wrote:
}
} To be honest, I can't really follow all the ins and outs and if your
} patch works (checking -k in combination with other options is probably
} the key) it's probably good enough and we can see if problems turn up as
} time passes.
Does it even make sense to use -d and -k at the same time? I know it
doesn't throw an error to use both (perhaps it should) but the loop
for -k doesn't recognize delimiters (or backslashes -- perhaps the doc
should say that -k implies -r ...?).
In any case I've tested this (use of "-rk" apparently redundant):
read -st 2 -rk 3 esc$'?\e['"${seq}"t
And these:
read -srd $'\e'
IFS=';' read -Arsd t
All appear to work with the patch from users/12600, on RHEL4 linux.
So, I'll go ahead and commit.
} It would be nice to have tests but they're particularly difficult to
} write for this.
They'd probably have to use zpty and operate along the lines of the
completion tests.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author