Skip to content

No wraparound when inserting #4360

Answered by jerch
javier-godoy asked this question in Q&A
Dec 27, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

@javier-godoy xtermjs implements IRM and DECAWM following these DEC VT semantics:

If the DECAWM function is set, then graphic characters received when the cursor is at the right border of the page appear at the beginning of the next line. Any text on the page scrolls up if the cursor is at the end of the scrolling region.
If IRM mode is set, then new characters move characters in page memory to the right. Characters moved past the page's right border are lost.

Thus wrap-around does not apply in insert mode to moved chars, that are right of the current cursor position. Also xterm and gnome-terminal behave the same way (tested with echo -en '\x1b[4h2345678\x1b[7D' && sleep 20 and insertin…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@javier-godoy
Comment options

@jerch
Comment options

Answer selected by javier-godoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type/question A question on how to use the library
3 participants
Converted from issue

This discussion was converted from issue #4359 on December 27, 2022 22:25.