Re: [PATCH] Add support for passing control sequences to the underlying terminal

2011-01-28 Thread Nicholas Marriott
logging nonprintable is fine we do it all over the place On Fri, Jan 28, 2011 at 01:28:30PM -0800, Kevin Goodsell wrote: > On Fri, Jan 28, 2011 at 12:36 PM, Nicholas Marriott > wrote: > > input_dcs_dispatch should log the input string but otherwise this looks > > fine on a quick read. > > > > T

Re: [PATCH] Add support for passing control sequences to the underlying terminal

2011-01-28 Thread Kevin Goodsell
On Fri, Jan 28, 2011 at 12:36 PM, Nicholas Marriott wrote: > input_dcs_dispatch should log the input string but otherwise this looks > fine on a quick read. > This was something that occurred to me, but the string is likely to include non-printable characters. Should it be logged as-is in spite o

Re: Maybe you'll find it useful (or some bugs/problems with it?)

2011-01-28 Thread clemens fischer
On Tue-2011/01/25-14:23 hubert depesz lubaczewski wrote in <20110125132342.ga18...@depesz.com>: > To help me with it, I wrote simple script (attached to this mail), which > perhaps you will find useful. Minor nits about quoting: both $((...)) and subscript [...] in bash treat their arguments as

Re: [PATCH] Improper buffer clearing causes incorrect title

2011-01-28 Thread Nicholas Marriott
yes, this is right. applied to openbsd will be in SF soon, thanks On Thu, Jan 27, 2011 at 10:16:16AM -0800, Kevin Goodsell wrote: > In input.c, several of the input_enter_* functions do this: > > ictx->input_len = 0; > > This is intended to be the number of characters in ictx->input_buf. > Ho

Re: [PATCH] Add support for passing control sequences to the underlying terminal

2011-01-28 Thread Nicholas Marriott
input_dcs_dispatch should log the input string but otherwise this looks fine on a quick read. I'm a bit tempted to say we should treat OSC and APC the same to be consistent but not sure... On Fri, Jan 28, 2011 at 09:47:00AM -0800, Kevin Goodsell wrote: > This patch allows applications to send co

Re: monitor-content examples

2011-01-28 Thread clemens fischer
Sebastian Tramp wrote: > And just another question: Is there a resource available, where I can > see examples for the monitor-content option? I've played around > a little bit but wasn't successful (try a configure al mcabber alert) I have this to alert me whenever tmux sees my shell prompt, but

Re: Modifiers in nested tmux

2011-01-28 Thread Olivier Keun
I think i figured it out; i was using one of the example configs from the tmux site, and apparently this one had the C-arrow keys mapped to change windows: bind-key -n C-right next bind-key -n C-left prev While this apparently doesn't interfere with resize-pane in the local tmux, it doesn't work

[PATCH] Add support for passing control sequences to the underlying terminal

2011-01-28 Thread Kevin Goodsell
This patch allows applications to send control sequences to the underlying terminal by using DCS. It adds the dcs_escape state to the input state machine, allowing ESC characters in the dcs_handler state. Following an ESC, a backslash is interpreted as the end of the DCS string and any other charac

Re: Modifiers in nested tmux

2011-01-28 Thread Olivier Keun
Thank you Nicholas. I've have just tried adding "set-window-option -g xterm-keys on" globally, or "setw -g xterm-keys on" from within tmux, but i'm seeing the same behaviour. This is the relevant part from my config: --- .tmux.conf --- # set prefix key to ctrl-a unbind C-b set -g prefix C-a # Al

Re: Modifiers in nested tmux

2011-01-28 Thread Nicholas Marriott
what does it show inside the first tmux if you do "cat" snd press C-Left? On Fri, Jan 28, 2011 at 12:06:23PM +0100, Olivier Keun wrote: >Thank you Nicholas. >I've have just tried adding "set-window-option -g xterm-keys on" globally, >or "setw -g xterm-keys on" from within tmux, but i'

Re: [lost server] on Red Hat Enterprise 5.4

2011-01-28 Thread Nicholas Marriott
tmux version? Does it leave a core? I use tmux daily on about every version of RHEL so it definitely works. Try libevent 1.4 and see if its caused by libevent 2. On Fri, Jan 28, 2011 at 11:11:20AM +0100, Adam Dariusz Szkoda wrote: > Hi, > > I can't get tmux to work on this old Red Hat which I

[lost server] on Red Hat Enterprise 5.4

2011-01-28 Thread Adam Dariusz Szkoda
Hi, I can't get tmux to work on this old Red Hat which I'm not an admin of and therefore can't do any updates. All I get after tmux startup is "[lost server]" and a terminal in a state that only reset (entered without echoing characters) command helps. Both tmux and libevent were compiled by me.

Re: Modifiers in nested tmux

2011-01-28 Thread Nicholas Marriott
tmux doesn't support C-Left, Right etc inside unless you set the xterm-keys option. On Fri, Jan 28, 2011 at 01:00:26AM +0100, Olivier Keun wrote: >This is probably a simple question: >a) When i resize panes in a single tmux with C-b + C-Right, this works >okay. >b) When i do the s

Modifiers in nested tmux

2011-01-28 Thread Olivier Keun
This is probably a simple question: a) When i resize panes in a single tmux with C-b + C-Right, this works okay. b) When i do the same for a remote tmux this works fine too. c) When i open the remote tmux in the local tmux and then C-b + send-prefix + C-Right, the last Control seems to get lost