We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vim and others appear to do this. It also has the added benefit of fixing Page Up and Page Down on MacOS using Terminal.app.
Page Up
Page Down
void initEditor() { write(STDOUT_FILENO, "\033[?47h", 6); // New (smcup) EditorConfig.cursor.x = 0; EditorConfig.cursor.y = 0; if (getWindowSize(&EditorConfig.screenRows, &EditorConfig.screenCols) == -1) die("getWindowSize"); terminalClearScreen(); } // ... void disableRawMode() { write(STDOUT_FILENO, "\033[?47l", 6); // New (rmcup) tcsetattr(STDIN_FILENO, TCSAFLUSH, &EditorConfig.orig_termios); }
More info here.
The text was updated successfully, but these errors were encountered:
For what it's worth - some people don't like the fact that programs use smcup and rmcup.
Sorry, something went wrong.
No branches or pull requests
Vim and others appear to do this. It also has the added benefit of fixing
Page Up
andPage Down
on MacOS using Terminal.app.More info here.
The text was updated successfully, but these errors were encountered: