zsh-workers
 help / color / mirror / code / Atom feed
* help with read in zsh 3.0/3.1
@ 2004-10-29 17:58 Jordan Breeding
  0 siblings, 0 replies; only message in thread
From: Jordan Breeding @ 2004-10-29 17:58 UTC (permalink / raw)
  To: zsh-workers

i have the following code in my precmd() function only for zsh versions which are at least 4.1 (don't have 4.0 anywhere so i don't if it would work there):

local escape colno lineno
IFS='[;' read -s -d R escape\?$'\e[6n' lineno colno
(( colno > 1 )) && echo ''

this code was provided to me by Bart Schaefer (I believe) and allows my zsh to know whether or not it needs to perform an echo before issuing it's LF

the problem is that at work i have some boxes which i need to use zsh 3.0/3.1 on, i would also like to use this code there but zsh 3.0/3.1 don't have -s or -d for read, Bart Schaefer provided me with some pointers on how it might be done but I couldn't really get anything to actually work the way the zsh 4.1 read does.

any ideas on how to make that code into a code block that would work for 3.0/3.1?

thanks for any help.

Jordan


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-29 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 17:58 help with read in zsh 3.0/3.1 Jordan Breeding

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).