Re: Patch for wrapping wide chars

2011-03-23 Thread Nicholas Marriott
This makes sense to me although it is uglying (uglifying?) things up even further :-). Don't really have time to clean up that code and I'd probably only break it again so let's go for this in the meantime? Sorry it took so long... I'm away again and not back for good until Sunday. Cheers On

Re: My dream: a pointy-clicky tmux frontend

2011-03-23 Thread Nicholas Marriott
Yep this is a cool idea and I am happy but that George wrote up the design doc but I haven't had time up to now although I did some basic work and yes if anyone is interested in carrying on then let me know and I will have time to give help if necessary. Many of the changes are relatively simple.

My dream: a pointy-clicky tmux frontend

2011-03-23 Thread Joshua Keroes
Imagine a reinvented terminal app. First, let's use tmux as the backend. Users would get autodetech and the safety that comes with it automatically. Session moves and dupes also come free. We have this functionality today if you're clever with your startup dotfiles. This isn't new. Merging tmux a

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
Ahhh yup, that worked like a champ. set -g terminal-overrides "*:kUP5=\eOA,*:kDN5=\eOB,*:kLFT5=\eOD,*:kRIT5=\eOC" Works for up, down, left and right now. Thanks! On Wed, Mar 23, 2011 at 3:50 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Sorry use " not ' in .tmux.conf or \e wo

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
Note these will apply for any terminal, you may want to use TERM=putty outside tmux (if your system supports it) and change all the * to putty. On Wed, Mar 23, 2011 at 04:11:45PM -0400, mbm329 wrote: >Ahhh yup, that worked like a champ. > >set -g terminal-overrides >"*:kUP5=\eOA,*:kD

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
Sorry use " not ' in .tmux.conf or \e won't be replaced: set -g terminal-overrides "*:kUP5=\eOA" On Wed, Mar 23, 2011 at 03:42:33PM -0400, mbm329 wrote: > >[mbmtest@test1�~]$ tmux ls >failed to connect to server: Connection refused >[mbmtest@test1�~]$ cat ~/.tmux.conf >set -

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
[mbmtest@test1 ~]$ tmux ls failed to connect to server: Connection refused [mbmtest@test1 ~]$ cat ~/.tmux.conf set -g terminal-overrides '*:kUP5=\eOA' [mbmtest@test1 ~]$ tmux ## [mbmtest@test1 ~]$ tmux info tmux 1.4, pid 13611, started Wed Mar 23 15:18:56 2011 socket path

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Micah Cowan
On 03/23/2011 11:43 AM, mbm329 wrote: > Thanks for the pointer. > > Using PuTTY, here's the output: > > $ cat > ^[[A > ^[OA > A How about for: "tput smkx; cat; tput rmkx"? That'd be the situation tmux would actually see them in. -- Micah J. Cowan http://micah.cowan.name/ -

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
Nope it is either \e[A or \eOA. On Wed, Mar 23, 2011 at 12:27:06PM -0700, Micah Cowan wrote: > On 03/23/2011 11:50 AM, Nicholas Marriott wrote: > > These are usually the keys that are changed when the keypad is put into > > cursor mode, these are all treated as up, down, left and right by tmux. >

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Micah Cowan
On 03/23/2011 11:50 AM, Nicholas Marriott wrote: > These are usually the keys that are changed when the keypad is put into > cursor mode, these are all treated as up, down, left and right by tmux. > > Try eg > > set -g terminal-overrides '*:kUP5=\eOA' That should be \e[OA shouldn't it? -- Mica

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
show me output of tmux info after restarting it with that in .tmux.conf On Wed, Mar 23, 2011 at 03:12:31PM -0400, mbm329 wrote: >Unfortunately, neither worked. �Any other ideas to try? >On Wed, Mar 23, 2011 at 2:50 PM, Nicholas Marriott ><[1]nicholas.marri...@gmail.com> wrote: > >

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
Unfortunately, neither worked. Any other ideas to try? On Wed, Mar 23, 2011 at 2:50 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > These are usually the keys that are changed when the keypad is put into > cursor mode, these are all treated as up, down, left and right by tmux. > >

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
These are usually the keys that are changed when the keypad is put into cursor mode, these are all treated as up, down, left and right by tmux. Try eg set -g terminal-overrides '*:kUP5=\eOA' Or \e[A if that doesn't work. On Wed, Mar 23, 2011 at 02:43:36PM -0400, mbm329 wrote: >Thanks for th

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
Thanks for the pointer. Using PuTTY, here's the output: $ cat ^[[A ^[OA A That's cat, return, Up, return, Ctrl+Up, return. The A on a line by itself was placed there by the return after Ctrl+Up. Since you mentioned the terminal, I checked the Translation section and was using "UTF-8". I chang

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
Thanks for the pointer. Using PuTTY, here's the output: $ cat ^[[A ^[OA A That's cat, return, Up, return, Ctrl+Up, return. The A on a line by itself was placed there by the return after Ctrl+Up. Since you mentioned the terminal, I checked the Translation section and was using "UTF-8". I chang

Re: Tmux starts slowing down badly after long periods of execution

2011-03-23 Thread Samer Atiani
Interesting, is that whats causing the problem? I'm curious to hear an explanation. Thanks! Samer On Wed, Mar 23, 2011 at 11:46 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Change this: > > set-option -g status-right '#[fg=black]#(date +"%a %b %d %Y %R")' > > To this: > > set-o

Re: Tmux starts slowing down badly after long periods of execution

2011-03-23 Thread Nicholas Marriott
this has been covered before, tmux runs status-left and -right through strftime(3) itself so you are asking it to run a new command like 'date +"Wed Mar 23 2011 17:01"' every minute. until very recently these commands were persistent so each minute it would allocate a new job entry and cause tmux t

Re: resize-pane keystrokes acting as select-pane

2011-03-23 Thread Nicholas Marriott
Works for me. Are you sure your terminal shows different things for C-Up and Up? (Run cat outside tmux then press them and make sure it shows different things for the two keys.) On Wed, Mar 23, 2011 at 12:45:43PM -0400, mbm329 wrote: >Hi all, > >Trying to resize-pane by 1 row or column

resize-pane keystrokes acting as select-pane

2011-03-23 Thread mbm329
Hi all, Trying to resize-pane by 1 row or column and it just does a select-pane instead. Here is the relative output from the list-keys command: Up: (repeat) select-pane -U Down: (repeat) select-pane -D Left: (repeat) select-pane -L Right: (repeat) select-pane -R M-Up: (repeat) r

Re: Tmux starts slowing down badly after long periods of execution

2011-03-23 Thread Nicholas Marriott
Change this: set-option -g status-right '#[fg=black]#(date +"%a %b %d %Y %R")' To this: set-option -g status-right '#[fg=black]%a %b %d %Y %R' On Wed, Mar 23, 2011 at 11:20:31AM -0400, Samer Atiani wrote: >I'm still getting this problem at least once a day and its beginning to >make tm

Re: tmux called as screen

2011-03-23 Thread Saku Ytti
On 23 March 2011 14:47, Nicholas Marriott wrote: >> Maybe we were thinking completely different level of emulation. I was >> thinking mostly recognizing -d and -r switches for deteach+attach or >> just attach and parsing of tmux-screen.rc instead of tmux.rc. > > Both those things could be done tr

Re: Tmux starts slowing down badly after long periods of execution

2011-03-23 Thread Samer Atiani
I'm still getting this problem at least once a day and its beginning to make tmux unusable for me. To summarize the problem again, tmux starts to freeze intermittently after periods of use ranging from 3-8 hours. During intermittent freezes, tmux doesn't act on keyboard events quickly, freezes for

Re: tmux under windows using cygwin

2011-03-23 Thread Nicholas Marriott
Hi On Wed, Mar 23, 2011 at 09:54:59AM -0400, Andrew Schulman wrote: > > On Tue, Dec 28, 2010 at 01:14:06PM +0100, Hamlet DArcy wrote: > > > Hi all, > > > > > > Is it possible to run tmux under Windows using cygwin? Can anyone point > > > to a how-to on this or any other relevant information? >

Re: tmux under windows using cygwin

2011-03-23 Thread Andrew Schulman
> On Tue, Dec 28, 2010 at 01:14:06PM +0100, Hamlet DArcy wrote: > > Hi all, > > > > Is it possible to run tmux under Windows using cygwin? Can anyone point to > > a how-to on this or any other relevant information? > > Nope, not until Cgywin supports passing file descriptors over a Unix > domai

Re: tmux called as screen

2011-03-23 Thread Nicholas Marriott
Hi On Wed, Mar 23, 2011 at 02:43:12PM +0200, Saku Ytti wrote: > On 23 March 2011 14:30, Nicholas Marriott wrote: > > > There is no chance of tmux having a screen emulation mode, but if > > someone would care to write an sh script that makes tmux command line > > act a bit like screen then I will

Re: tmux called as screen

2011-03-23 Thread Saku Ytti
On 23 March 2011 14:30, Nicholas Marriott wrote: > There is no chance of tmux having a screen emulation mode, but if > someone would care to write an sh script that makes tmux command line > act a bit like screen then I will ship it. Maybe we were thinking completely different level of emulation

Re: tmux called as screen

2011-03-23 Thread Nicholas Marriott
Hi There is no chance of tmux having a screen emulation mode, but if someone would care to write an sh script that makes tmux command line act a bit like screen then I will ship it. It could even set things up so it looks like screen easily enough... On Wed, Mar 23, 2011 at 12:25:10PM +0200, Sa

tmux called as screen

2011-03-23 Thread Saku Ytti
(just to point out, this appears to be individually thought by number of people http://lists.freebsd.org/pipermail/freebsd-arch/2009-September/009540.html) It would be grand if tmux could be installed as 'screen' hardlink, and upon when called would have rudimentary screen compatibility mode for