#6165·xterm.js

序列化插件恢复了在全行写入后剩下的 Cursor 一列

作者: computer-prilo创建于 2026年9月9日更新于 2026年9月16日

`StringSerializeHandler._serializeString` tracks the position after emitting the full row as `_lastCursorCol === cols`, then restores `cursorX === cols - 1` with ZZTERM10ZZ-left by one. `InputHandler._moveCursor` first clamps pending wrap to the last physical cell before applying the relative movement, resulting in an extra leftward step.

内容来源: xtermjs/xterm.js