=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/input-keys.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/tmux/input-keys.c 2009/10/26 14:30:57 1.11 --- src/usr.bin/tmux/input-keys.c 2009/10/26 17:46:33 1.12 *************** *** 1,4 **** ! /* $OpenBSD: input-keys.c,v 1.11 2009/10/26 14:30:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: input-keys.c,v 1.12 2009/10/26 17:46:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 172,177 **** --- 172,189 ---- buffer_write8(wp->out, '\033'); buffer_write8(wp->out, (uint8_t) (key & ~KEYC_ESCAPE)); return; + } + + /* + * Then try to look this up as an xterm key, if the flag to output them + * is set. + */ + if (options_get_number(&wp->window->options, "xterm-keys")) { + if ((out = xterm_keys_lookup(key)) != NULL) { + buffer_write(wp->out, out, strlen(out)); + xfree(out); + return; + } } /* Otherwise look the key up in the table. */