On 03/24/2011 11:52 PM, Walter Dnes wrote:
> On Thu, Mar 24, 2011 at 10:07:22AM -0700, Micah Cowan wrote
> 
>> It isn't. If the terminal doesn't send something for the key (which
>> you would've seen in "cat"), then tmux can't see it.
> 
>   Actually, if I type "cat ^F" or "cat ^G" I don't get anything on
> screen either.   And no cursor movement ("cat ^H" pushes the cursor back
> one space.  Am I understanding your instructions properly?  By the way
> $TERM is "linux" in the text console, and "screen" under tmux.

The terminal's still sending something in those cases. The difference is
that those characters get interpreted before they get display. However,
that depends a great deal on your terminal and its current status. And
you can tell the terminal to pass them _all_ through without
interpretation (but then it becomes difficult to quit the running "cat"
program, since ^D and ^C will both be simply passed through).

However, even if you were to enable that mode, you still wouldn't see
anything for Scroll Lock or Print Screen. Both of those tend to be
interpreted by the desktop before they ever get to a terminal emulator,
and even if the terminal emulator sees it, it doesn't know how to
transform it into an ASCII sequence that can be seen by the app, and
there are no terminfo entries for them, so even if it did, the app
wouldn't know what to do with them.

Actually, just checking now, I'm wrong about Print Screen. That can be
advertised in terminfo, so maybe some terms send something for it. But
more likely, your desktop environment will use it as a signal to take a
screenshot or something. Anyway, if you can't see it in cat, your
terminal's either not seeing it, or not sending anything for it; in
either case, tmux can't take advantage of it.

-- 
Micah J. Cowan
http://micah.cowan.name/

------------------------------------------------------------------------------
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

Reply via email to