Skip to content
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

Fix turning from alt screen to normal screen and vice versa. #728

Merged
merged 1 commit into from
Jun 26, 2017

Conversation

AndrienkoAleksandr
Copy link
Contributor

@AndrienkoAleksandr AndrienkoAleksandr commented Jun 25, 2017

Fix turning from alt screen to normal screen and vice versa.
Fix #229.
Target branch: buffer-set

@AndrienkoAleksandr
Copy link
Contributor Author

@parisk can you look?

@@ -1440,8 +1441,8 @@ export class InputHandler implements IInputHandler {
* Save cursor (ANSI.SYS).
*/
public saveCursor(params: number[]): void {
this._terminal.savedX = this._terminal.buffer.x;
this._terminal.savedY = this._terminal.buffer.y;
this._terminal.buffers.active.x = this._terminal.buffer.x;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this._terminal.buffers.active is the same with this._terminal.buffer.

I am not sure yet though if the savedX and savedY cursor positions have to be stored in the buffer or universally in the terminal.

Any thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I will look.

@parisk parisk merged commit e5c0bf9 into xtermjs:buffer-set Jun 26, 2017
@parisk
Copy link
Contributor

parisk commented Jun 26, 2017

Thanks @AndrienkoAleksandr! This seems to be working.

Can you take a look at https://github.com/sourcelair/xterm.js/pull/728/files#r123939766 though, as I will need to change this piece of code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants