Andries Brouwer wrote:
> There are many types of TTY. A termcap/terminfo entry would tell you
> what escape sequence causes the cursor to move left one position.
> (In termcap the boolean bs will tell you whether it is 010, backspace.)
>
> Such cursor movement is entirely independent of the text present
> on the screen.

However, starting to write text in the middle of a double-width character
does not really work.

For example, xterm and KDE's console both set TERM=xterm. For both,
the terminfo entry (shown by "infocmp xterm") has cub1=^H, so indeed
\x08 should move the cursor left by one column. In both, \x08 \x08
goes back over a Japanese double-width character:

  $ echo -n 'ææè' ; printf '\x08\x08' ; echo xyz
  ææxyz

But when only one \x08 is used, the results differ: In xterm,

  $ echo -n 'ææè' ; printf '\x08' ; echo xyz
  ææIxyz

where the I is half of a Japanese character, and disappears when selected.
In konsole, the same thing produces produces major screen garbage.

Bruno



_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to