terminal-util: modernize vtnr_from_tty() a bit
This commit is contained in:
@@ -172,3 +172,7 @@ static inline bool osc_char_is_valid(char c) {
|
||||
* ECMA-48 5th edition, section 8.3.89 */
|
||||
return (unsigned char) c >= 32U && (unsigned char) c < 127;
|
||||
}
|
||||
|
||||
static inline bool vtnr_is_valid(unsigned n) {
|
||||
return n >= 1 && n <= 63;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user