Skip to content

Replace UnknownCsi with generalized Event::Unsupported

Michael Aaron Murphy requested to merge gyscos:master into master

Created by: gyscos

Instead of having a special "Unknown" enum variant for CSI sequence, simply record any unknown byte sequence sent to event::parse_event and includes that in the event::Unsupported variant.

This is cleaner and more generic.

Also splits the CSI parsing part into its own function.

Note: I ran rustfmt, but there were no rustfmt.toml configuration, so it used the defaults. If this is not satisfactory, do you have a better config to use instead?

Merge request reports