sync code with last improvements from OpenBSD
This commit is contained in:
parent
cac1167ac2
commit
0e5a54c21a
19 changed files with 662 additions and 356 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: tty-keys.c,v 1.168 2023/09/02 20:03:10 nicm Exp $ */
|
||||
/* $OpenBSD: tty-keys.c,v 1.170 2023/09/07 10:21:46 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
|
@ -1314,11 +1314,16 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len,
|
|||
break;
|
||||
}
|
||||
|
||||
/* Add terminal features. */
|
||||
/*
|
||||
* Add terminal features. Technically, VT420 and VT525 do not support
|
||||
* SIXEL, but some modern terminals report it anyway so we accept it
|
||||
* here too.
|
||||
*/
|
||||
switch (p[0]) {
|
||||
case 62: /* VT220 */
|
||||
case 63: /* VT320 */
|
||||
case 64: /* VT420 */
|
||||
case 65: /* VT525 */
|
||||
for (i = 1; i < n; i++) {
|
||||
log_debug("%s: DA feature: %d", c->name, p[i]);
|
||||
if (p[i] == 4)
|
||||
|
@ -1391,6 +1396,9 @@ tty_keys_device_attributes2(struct tty *tty, const char *buf, size_t len,
|
|||
/* Add terminal features. */
|
||||
switch (p[0]) {
|
||||
case 41: /* VT420 */
|
||||
case 61: /* VT510 */
|
||||
case 64: /* VT520 */
|
||||
case 65: /* VT525 */
|
||||
tty_add_features(features, "margins,rectfill", ",");
|
||||
break;
|
||||
case 'M': /* mintty */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue