Skip to content

Comments

Fix non-working raw escape bindings after restarting the screen#3468

Merged
JoeKar merged 1 commit intomicro-editor:masterfrom
dmaluka:rawseq-screen-restart-fix
Sep 12, 2024
Merged

Fix non-working raw escape bindings after restarting the screen#3468
JoeKar merged 1 commit intomicro-editor:masterfrom
dmaluka:rawseq-screen-restart-fix

Conversation

@dmaluka
Copy link
Collaborator

@dmaluka dmaluka commented Sep 12, 2024

When we temporarily disable the screen (e.g. during RunInteractiveShell) and then enable it again, we reinitialize tcell.Screen from scratch, so we need to register all previously registered raw escape sequences once again. Otherwise raw escape bindings stop working, since the list of raw escape sequences of this newly create tcell.Screen is empty.

Fixes #3392

When we temporarily disable the screen (e.g. during RunInteractiveShell)
and then enable it again, we reinitialize tcell.Screen from scratch, so
we need to register all previously registered raw escape sequences once
again. Otherwise raw escape bindings stop working, since the list of
raw escape sequences of this newly create tcell.Screen is empty.

Fixes micro-editor#3392
@dmaluka dmaluka force-pushed the rawseq-screen-restart-fix branch from ac3bc93 to 13c7178 Compare September 12, 2024 17:08
@JoeKar JoeKar merged commit d6d0b26 into micro-editor:master Sep 12, 2024
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.

palettero plugin breaks \u001b[ keybindings

2 participants