So your terminal outputs \033[OP for the function keys but the terminfo
description you are using says F1 is \033[11~.

Why are you using xterm-color? Function keys should be correct with
either xterm or xterm-xfree86.


On Wed, Mar 24, 2010 at 11:41:08AM -0500, Redding, Erik wrote:
> Thanks for the quick reply.  I am running a FedoraCore12  box and did a yum 
> install tmux. 
> 
> Here's the output of running cat, hitting F1-F5, then I press return thrice.  
> It looks like some characters stay in some sort of buffer:
> 
> stego:~ erikthered$ cat 
> ^[OP^[OQ^[OR^[OS^[[15~
> PQRS
> 
> 
> ^C
> stego:~ erikthered$ 
> 
> 
> 
> 
> tmux info
> tmux 1.1, pid 5189, started Tue Mar 23 20:34:00 2010
> socket path /var/run//tmux/tmux-500/default, debug level 0
> system is Linux 2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21 05:33:33 UTC 2009 
> x86_64
> configuration file is /home/erikthered/.tmux.conf
> protocol version is 5
> 2 clients, 4 sessions
> 
> 
> Terminals:
> xterm-color [references=1, flags=0x0]:
>  1: acsc: (string) ``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
>  0: AX: [missing]
>  2: bel: (string) \007
>  3: blink: [missing]
>  4: bold: (string) \033[1m
>  5: civis: [missing]
>  6: clear: (string) \033[H\033[2J
>  7: cnorm: [missing]
>  8: colors: (number) 8
>  9: csr: (string) \033[%i%p1%d;%p2%dr
> 10: cub: (string) \033[%p1%dD
> 11: cub1: (string) \010
> 12: cud: (string) \033[%p1%dB
> 13: cud1: (string) \012
> 14: cuf: (string) \033[%p1%dC
> 15: cuf1: (string) \033[C
> 16: cup: (string) \033[%i%p1%d;%p2%dH
> 17: cuu: (string) \033[%p1%dA
> 18: cuu1: (string) \033[A
> 19: dch: (string) \033[%p1%dP
> 20: dch1: (string) \033[P
> 21: dim: [missing]
> 22: dl: (string) \033[%p1%dM
> 23: dl1: (string) \033[M
> 24: el: (string) \033[K
> 25: el1: [missing]
> 26: enacs: (string) \033)0
> 27: home: (string) \033[H
> 28: hpa: [missing]
> 29: ich: [missing]
> 30: ich1: [missing]
> 31: il: (string) \033[%p1%dL
> 32: il1: (string) \033[L
> 33: invis: [missing]
> 34: is1: [missing]
> 35: is2: (string) \033[m\033[?7h\033[4l\033>\0337\033[r\033[?1;3;4;6l\0338
> 36: is3: [missing]
> 37: kcbt: [missing]
> 38: kcub1: (string) \033OD
> 39: kcud1: (string) \033OB
> 40: kcuf1: (string) \033OC
> 41: kcuu1: (string) \033OA
> 42: kDC: [missing]
> 43: kDC3: [missing]
> 44: kDC4: [missing]
> 45: kDC5: [missing]
> 46: kDC6: [missing]
> 47: kDC7: [missing]
> 48: kdch1: (string) \033[3~
> 49: kDN: [missing]
> 50: kDN3: [missing]
> 51: kDN4: [missing]
> 52: kDN5: [missing]
> 53: kDN6: [missing]
> 54: kDN7: [missing]
> 55: kend: [missing]
> 56: kEND: [missing]
> 57: kEND3: [missing]
> 58: kEND4: [missing]
> 59: kEND5: [missing]
> 60: kEND6: [missing]
> 61: kEND7: [missing]
> 61: kEND7: [missing]                                                          
>                                          [20/145]
> 62: kf1: (string) \033[11~
> 63: kf10: (string) \033[21~
> 64: kf11: (string) \033[23~
> 65: kf12: (string) \033[24~
> 66: kf13: (string) \033[25~
> 67: kf14: (string) \033[26~
> 68: kf15: (string) \033[28~
> 69: kf16: (string) \033[29~
> 70: kf17: (string) \033[31~
> 71: kf18: (string) \033[32~
> 72: kf19: (string) \033[33~
> 73: kf2: (string) \033[12~
> 74: kf20: (string) \033[34~
> 75: kf3: (string) \033[13~
> 76: kf4: (string) \033[14~
> 77: kf5: (string) \033[15~
> 78: kf6: (string) \033[17~
> 79: kf7: (string) \033[18~
> 80: kf8: (string) \033[19~
> 81: kf9: (string) \033[20~
> 82: kHOM: [missing]
> 83: kHOM3: [missing]
> 84: kHOM4: [missing]
> 85: kHOM5: [missing]
> 86: kHOM6: [missing]
> 87: kHOM7: [missing]
> 88: khome: [missing]
> 89: kIC: [missing]
> 90: kIC3: [missing]
> 91: kIC4: [missing]
> 92: kIC5: [missing]
> 93: kIC6: [missing]
> 94: kIC7: [missing]
> 95: kich1: (string) \033[2~
> 96: kLFT: [missing]
> 97: kLFT3: [missing]
> 98: kLFT4: [missing]
> 99: kLFT5: [missing]
> 100: kLFT6: [missing]
> 101: kLFT7: [missing]
> 102: kmous: (string) \033[M
> 103: knp: (string) \033[6~
> 104: kNXT: [missing]
> 105: kNXT3: [missing]
> 106: kNXT4: [missing]
> 107: kNXT5: [missing]
> 108: kNXT6: [missing]
> 109: kNXT7: [missing]
> 110: kpp: (string) \033[5~
> 111: kPRV: [missing]
> 112: kPRV3: [missing]
> 113: kPRV4: [missing]
> 114: kPRV5: [missing]
> 115: kPRV6: [missing]
> 116: kPRV7: [missing]
> 117: kRIT: [missing]
> 118: kRIT3: [missing]
> 119: kRIT4: [missing]
> 120: kRIT5: [missing]
> 121: kRIT6: [missing]
> 122: kRIT7: [missing]
> 123: kUP: [missing]
> 124: kUP3: [missing]
> 125: kUP4: [missing]
> 126: kUP5: [missing]
> 127: kUP6: [missing]
> 128: kUP7: [missing]
> 129: op: (string) \033[m
> 130: rev: (string) \033[7m
> 131: ri: (string) \033M
> 132: rmacs: (string) \017
> 133: rmcup: (string) \033[2J\033[?47l\0338
> 134: rmir: (string) \033[4l
> 135: rmkx: (string) \033[?1l\033>
> 136: setab: (string) \033[4%p1%dm
> 137: setaf: (string) \033[3%p1%dm
> 138: sgr0: (string) \033[m
> 139: smacs: (string) \016
> 140: smcup: (string) \0337\033[?47h
> 141: smir: (string) \033[4h
> 142: smkx: (string) \033[?1h\033=
> 143: smso: (string) \033[7m
> 144: smul: (string) \033[4m
> 145: vpa: [missing]
> 146: xenl: (flag) true
> 
> Jobs:
> exec hostname  [fd=-1, pid=-1, status=0, flags=0x3]
> 
> 
> 
> 
> I think I see the issue.....  around keys mapped listed from  62-81, it 
> doesn't match what I have in my terminal preferences (the stuff you see from 
> my cat above). 
> 
> - Erik
> 
> 
> On Mar 24, 2010, at 4:07 AM, Nicholas Marriott wrote:
> 
> > What do you actually get when you run "cat" and press the function keys,
> > outside tmux?
> > 
> > Also please send the output of "tmux info" from inside tmux.
> > 
> > 
> > 
> > On Tue, Mar 23, 2010 at 08:17:45PM -0500, Redding, Erik wrote:
> >> I'm on a mac using terminal, SSH to a linux box, which runs tmux - it's my 
> >> jump point.  I'm trying to find out a way to get the function keys to work 
> >> properly so I can bind them to switch between sessions.
> >> 
> >> bind -n F1 switchc -t0
> >> bind -n F2 switchc -tWork
> >> 
> >> # session initialization
> >> new -s0
> >> neww -d
> >> 
> >> new -sWork
> >> set -tWork status-bg cyan
> >> neww -d
> >> 
> >> 
> >> No dice though.  Terminal barks.  Any ideas?
> >> 
> >> Thanks in advance. 
> >> - Erik
> >> 
> >> 
> >> 
> >> 
> >> ------------------------------------------------------------------------------
> >> Download Intel® Parallel Studio Eval
> >> Try the new software tools for yourself. Speed compiling, find bugs
> >> proactively, and fine-tune applications for parallel performance.
> >> See why Intel Parallel Studio got high marks during beta.
> >> http://p.sf.net/sfu/intel-sw-dev
> >> _______________________________________________
> >> tmux-users mailing list
> >> tmux-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/tmux-users
> 

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to