From what I can find, escape sequence parameters are "optional numeric values separated by semicolons".
As the values are separated by semicolons, it makes sense that if a sequence ends with a semicolon, the terminal should expect another parameter. Because the parameter is an optional number, it should default to 0.
For example, the code \e[4;m should have the same effect as \e[4;0m, that is, none at all.
I tested this specific sequence in kitty, termite, xterm, st and alacritty, and only alacritty draws the following text underlined.
It should be a simple fix and I will include it in my PR for #22
From what I can find, escape sequence parameters are "optional numeric values separated by semicolons".
As the values are separated by semicolons, it makes sense that if a sequence ends with a semicolon, the terminal should expect another parameter. Because the parameter is an optional number, it should default to 0.
For example, the code
\e[4;m
should have the same effect as\e[4;0m
, that is, none at all.I tested this specific sequence in kitty, termite, xterm, st and alacritty, and only alacritty draws the following text underlined.
It should be a simple fix and I will include it in my PR for #22