On 2014-03-20 15:52:21 +0100, Florian Bruhin wrote: > * Vincent Lefevre <vincent-m...@vinc17.net> [2014-03-20 15:22:28 +0100]: > > > > I *never* get stuck in hieroglyphs with any terminal. So, this is > > > > pointless. > > > > > > You will if you run something like: echo -e "\033(0" > > > > > > (Or if you abort a program when it was in the middle of writing in the > > > ACS.) > > > > No, I don't, thanks to my superior shell. :) > > > > ypig:~> echo -e "\033(0"; echo mq <14:52:08 > > > > └─ > > ypig:~> <14:52:10 > > > > See, the second prompt is fine. > > How do you do this? Do you just echo the escape sequence to shift back > in your prompt?
Something like that. I use the zsh precmd hook to do: [[ -n $zsh410 && -n $TTY && -n $terminfo ]] && print -n "$terminfo[rmacs]$terminfo[sgr0]" > $TTY Similarly, somewhere else I also have a "tput cnorm" (I don't know why at a different place). Note that buggy programs may also change tty settings, so that I also use zsh's "ttyctl -f". -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) _______________________________________________ mosh-users mailing list mosh-users@mit.edu http://mailman.mit.edu/mailman/listinfo/mosh-users