Skip to content

Conversation

@jam555
Copy link

@jam555 jam555 commented May 13, 2025

closes #48

Uses the xterm-style "?1049l" & "?1049h" escape codes to use the alternate screen buffer of some ANSI terminal emulators to avoid overwriting the data displayed on the terminal before Kilo was started. Includes a command-line argument to suppress this same behavior. Ensures that if the alt-screen WAS NOT used, then the cursor is placed on a new line directly BELOW the remaining displayed lines of Kilo, so that new commands can be typed without altering the visibility of what Kilo had previously displayed.

So: implements alt-screen, provides a command-line override, and ensures that things look nice if the override is used.

I've also added maintainer & contributor files, but I don't know if the project has a rule on those?

jam555 added 6 commits May 13, 2025 04:59
Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
I (Jam555) hereby license the contributions that, as of 13/May/2025, that I
have made to the Kilo Text Editor under the the BSD 2 clause license.

Signed-off-by: Jam555 <3349478+jam555@users.noreply.github.com>
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.

Use smcup and rmcup to save/restore screen buffer

1 participant