diff options
Diffstat (limited to 'app/xterm/xtermcap.c')
-rw-r--r-- | app/xterm/xtermcap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/xterm/xtermcap.c b/app/xterm/xtermcap.c index a3884db5f..ca537f2f0 100644 --- a/app/xterm/xtermcap.c +++ b/app/xterm/xtermcap.c @@ -1,4 +1,4 @@ -/* $XTermId: xtermcap.c,v 1.45 2011/02/19 20:28:13 tom Exp $ */ +/* $XTermId: xtermcap.c,v 1.47 2011/07/11 00:31:26 tom Exp $ */ /* * Copyright 2007-2010,2011 by Thomas E. Dickey @@ -68,7 +68,7 @@ typedef struct { } TCAPINFO; /* *INDENT-OFF* */ #define DATA(tc,ti,x,y) { tc, ti, x, y } -static TCAPINFO table[] = { +static const TCAPINFO table[] = { /* tcap terminfo code state */ DATA( "%1", "khlp", XK_Help, 0 ), DATA( "#1", "kHLP", XK_Help, SHIFT ), @@ -89,8 +89,8 @@ static TCAPINFO table[] = { DATA( "#4", "kLFT", XK_Left, SHIFT ), DATA( "%i", "kRIT", XK_Right, SHIFT ), - DATA( "kF", "kind", XK_Up, SHIFT ), - DATA( "kR", "kri", XK_Down, SHIFT ), + DATA( "kF", "kind", XK_Down, SHIFT ), + DATA( "kR", "kri", XK_Up, SHIFT ), DATA( "k1", "kf1", XK_Fn(1), 0 ), DATA( "k2", "kf2", XK_Fn(2), 0 ), @@ -345,7 +345,7 @@ lookupTcapByName(const char *name) int xtermcapKeycode(XtermWidget xw, const char **params, unsigned *state, Bool * fkey) { - TCAPINFO *data; + const TCAPINFO *data; int which; int code = -1; char *name; |