=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty-keys.c,v retrieving revision 1.171 retrieving revision 1.172 diff -c -r1.171 -r1.172 *** src/usr.bin/tmux/tty-keys.c 2023/09/08 06:52:31 1.171 --- src/usr.bin/tmux/tty-keys.c 2023/09/08 07:05:06 1.172 *************** *** 1,4 **** ! /* $OpenBSD: tty-keys.c,v 1.171 2023/09/08 06:52:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty-keys.c,v 1.172 2023/09/08 07:05:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1399,1406 **** break; } ! /* Add terminal features. */ switch (p[0]) { case 'M': /* mintty */ tty_default_features(features, "mintty", 0); break; --- 1399,1415 ---- break; } ! /* ! * Add terminal features. We add DECSLRM and DECFRA for some ! * identification codes here, notably 64 will catch VT520, even though ! * we can't use level 5 from DA because of VTE. ! */ switch (p[0]) { + case 41: /* VT420 */ + case 61: /* VT510 */ + case 64: /* VT520 */ + tty_add_features(features, "margins,rectfill", ","); + break; case 'M': /* mintty */ tty_default_features(features, "mintty", 0); break;