bind xterm-xfree86 and wscons (NetBSD®) wsvt25/vt220 too

This commit is contained in:
tg
2006-08-02 14:00:19 +00:00
parent 52357a30be
commit 58e5606710
2 changed files with 13 additions and 5 deletions

6
edit.c
View File

@@ -5,7 +5,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.32 2006/08/02 13:32:17 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/edit.c,v 1.33 2006/08/02 14:00:18 tg Exp $");
/* tty driver characters we are interested in */ /* tty driver characters we are interested in */
typedef struct { typedef struct {
@@ -1217,7 +1217,11 @@ static struct x_defbindings const x_defbindings[] = {
{ XFUNC_mv_forw, 2, 'C' }, { XFUNC_mv_forw, 2, 'C' },
{ XFUNC_mv_back, 2, 'D' }, { XFUNC_mv_back, 2, 'D' },
{ XFUNC_mv_begin | 0x80, 2, '1' }, { XFUNC_mv_begin | 0x80, 2, '1' },
{ XFUNC_mv_begin | 0x80, 2, '7' },
{ XFUNC_mv_begin, 2, 'H' },
{ XFUNC_mv_end | 0x80, 2, '4' }, { XFUNC_mv_end | 0x80, 2, '4' },
{ XFUNC_mv_end | 0x80, 2, '8' },
{ XFUNC_mv_end, 2, 'F' },
{ XFUNC_eot_del | 0x80, 2, '3' }, { XFUNC_eot_del | 0x80, 2, '3' },
}; };

12
mksh.1
View File

@@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.47 2006/08/02 13:34:02 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.48 2006/08/02 14:00:19 tg Exp $
.\" $OpenBSD: ksh.1,v 1.116 2006/07/26 10:13:25 jmc Exp $ .\" $OpenBSD: ksh.1,v 1.116 2006/07/26 10:13:25 jmc Exp $
.\" $OpenBSD: sh.1tbl,v 1.53 2004/12/10 01:56:56 jaredy Exp $ .\" $OpenBSD: sh.1tbl,v 1.53 2004/12/10 01:56:56 jaredy Exp $
.\" .\"
@@ -2472,8 +2472,8 @@ i.e. ^X represents Control-X.
Note that although only two prefix characters (usually ESC and ^X) Note that although only two prefix characters (usually ESC and ^X)
are supported, some multi-character sequences can be supported. are supported, some multi-character sequences can be supported.
.Pp .Pp
The following default bindings show how the arrow keys, the The following default bindings show how the arrow keys, the home, end and
home, end and delete key on an ANSI terminal or xterm are bound delete key on a BSD wsvt25, xterm-xfree86 or GNU screen terminal are bound
(of course some escape sequences won't work out quite this nicely): (of course some escape sequences won't work out quite this nicely):
.Bd -literal -offset indent .Bd -literal -offset indent
bind '^[['=prefix-2 bind '^[['=prefix-2
@@ -2482,8 +2482,12 @@ bind '^XB'=down-history
bind '^XC'=forward-char bind '^XC'=forward-char
bind '^XD'=backward-char bind '^XD'=backward-char
bind '^X1~'=beginning-of-line bind '^X1~'=beginning-of-line
bind '^X3~'=eot-or-delete bind '^X7~'=beginning-of-line
bind '^XH'=beginning-of-line
bind '^X4~'=end-of-line bind '^X4~'=end-of-line
bind '^X8~'=end-of-line
bind '^XF'=end-of-line
bind '^X3~'=eot-or-delete
.Ed .Ed
.Pp .Pp
.It Ic break Op Ar level .It Ic break Op Ar level