forked from selectel/pyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework CSI parsing to be aware of subparameters
This fixes selectel#178. Before, we assumed that CSI parameters are only integers. However, that caused us to barf in weird ways when presented with CSI parameters that contain `:`-delimited subparameters. This update to the parsing code causes us to parse those subparameters, and then immediately discard them. That may seem kind of weird, but I'm laying the groundwork for a followup change to the SGR handling code to actually be aware of subparameters (selectel#179). I just didn't want to muddy this diff with that change as well.
- Loading branch information
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters