-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong restore a cursor position in Midnight Commander #229
Comments
Are there any chances that this got fixed after #231? |
No, it is not associated. I fixed this, comment out the two lines: |
I have the same problem, but meefik's workaround don't work for me... DetailsBrowser and browser version: Chrome 53.0 |
Works for me when this line is commented out: |
This bug depends on Midnight Commander version. For example for MC 4.8.15 this bug is reproducible; mc 4.8.18 - works without this issue. |
If this only repros in an older version of MC then they probably fixed the issue on their end? The logic for save and restore cursors seems pretty foolproof to me: /**
* CSI s
* Save cursor (ANSI.SYS).
*/
public saveCursor(params: number[]): void {
this._terminal.savedX = this._terminal.x;
this._terminal.savedY = this._terminal.y;
}
/**
* CSI u
* Restore cursor (ANSI.SYS).
*/
public restoreCursor(params: number[]): void {
this._terminal.x = this._terminal.savedX || 0;
this._terminal.y = this._terminal.savedY || 0;
} |
Unfortunately in Ubuntu 16.04 you can install only 4.8.15 from official repos. |
Fixed in #728 |
Midnight Commander send two command for save a cursor positon:
https://github.com/sourcelair/xterm.js/blob/b32a34b97c71539d86c5df5871b40397dc04fcf0/src/xterm.js#L2052
xterm.js received a position X and Y correctly.
https://github.com/sourcelair/xterm.js/blob/b32a34b97c71539d86c5df5871b40397dc04fcf0/src/xterm.js#L2430
xterm.js received a position X and Y always 0.
Details
Steps to reproduce
The text was updated successfully, but these errors were encountered: