On Sun Feb 25, 2024 at 8:13 AM CST, Quentin Rameau wrote: > Would you have a suggestion about how to handle cursor absolute > position with text position, maybe we need some addition state?
I would suggest that cursor position control sequences should always operate on a single-column basis. This is in line with every other terminal that handles wide characters. It is up to the application running in the emulator to know where it wants to position the cursor. For example, the command below should move the cursor into the emoji but the second `\e[D` should have not *visual* change, but the cursor is actually in the "first" column of the emoji printf " 😀" && sleep 2 && printf "\e[D" && sleep 2 && printf "\e[D" && sleep 2 Just my two cents. -- Tim