On Tue, Mar 22, 2011 at 07:19:33PM +0000, Nicholas Marriott wrote > Scroll lock will only work if it generates a key sequence on your > terminal, most don't. Find out if it does by doing "cat" outside tmux > and pressing the key to see what it shows.
In a text console "cat ", followed by {PrntScrn} or {ScrollLock} or {Pause} generates nothing. In a text console, using "showkey -k" Pressing and releasing {PrntScrn} generates keycode 99 press keycode 99 release Pressing and releasing {ScrollLock} generates keycode 70 press keycode 70 release Pressing and releasing {Pause} generates keycode 119 press keycode 119 release In a text console, using "showkey -s" Pressing and releasing {PrntScrn} generates 0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0 0xb7 Pressing and releasing {ScrollLock} generates 0x46 0xc6 Pressing {Pause} generates 0xe1 0x1d 0x45 0xe1 0x9d 0xc5 Releasing {Pause} doesn't seem to do anything IANACP (I Am Not A C Programmer), so I'm not certain of this, but {ScrollLock} is the only one of the three that is "normal". I.e. pressing it generates a one-byte scancode and releasing it generates that one-byte scancode + 0x80. Is there a way to bind a key by referring to its scancode, rather than to its ASCII output? -- Walter Dnes <waltd...@waltdnes.org> ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users