On 11 August 2013 07:50, Dan Shelton <[email protected]> wrote: > Does anyone know a portable way (portable across most terminals that > is, or maybe something which can be done with tput) to read the > terminal cursor x position without using curses or ncurses? > > I'm asking because ksh93 has notorious problems with getting the > cursor position correct if PS1-PS4 contain unusual escape sequences or > characters which take more than one terminal cell (xterm256 color > sequences or the unicode '...' character) which makes the set -o > multiline mode unusable.
Send too early. Yes, I've read http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x405.html, but it doesn't help: tput cup returns "i%p1%d;%p2%dH" and I have no clue how to grok that, plus I only want to alter the X position and not Y too. Dan _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
