Skip to content

vterm: Fixed a crash bug with DECALN command - #560

Merged
penguinolog merged 1 commit into
urwid:masterfrom
danschwarz:vterm_decaln_fix
Jun 3, 2023
Merged

penguinolog merged 1 commit into
urwid:masterfrom
danschwarz:vterm_decaln_fix

Conversation

@danschwarz

@danschwarz danschwarz commented Jun 2, 2023 •

Copy link
Copy Markdown
Contributor
Checklist
  • I've ensured that similar functionality has not already been implemented
  • I've ensured that similar functionality has not earlier been proposed and declined
  • I've branched off the master or python-dual-support branch
  • I've merged fresh upstream into my branch recently
  • I've ran tox successfully in local environment
  • I've included docstrings and/or documentation and/or examples for my code (if this is a new feature)
Description:

vterm.py was crashing upon execution of DECALN (ESC # 8) because the code was sending a string to empty_line which requires a byte. This prevented vttest from running many test cases.

to test this, run terminal.py and execute the following shell command:

echo -e "\033#8"

Without this fix, urwid crashes. With the fix, you'll see a lot of Es onscreen, as expected. No crash.

@danschwarz danschwarz changed the title Fixed a crash bug with vterm.py DECALN command vterm: Fixed a crash bug with DECALN command Jun 2, 2023
@penguinolog
penguinolog merged commit 3c21a42 into urwid:master Jun 3, 2023
@danschwarz
danschwarz deleted the vterm_decaln_fix branch June 3, 2023 16:22
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.

2 participants