Re: tmux on Solaris 10 with native curses.

2009-09-22 Thread Nicholas Marriott
Hi > With minimal changes to the source to tty-term.c and new Makefile I am able > to compile both tmux 0.9 and 1.0 > with SUn Studio 12.1, Sun's make and the native curses implimentation. > > This gives me a funtional tmux binary with one problem, the split-window > function, crashes the tmux

Re: "bold colours" and xterm-256color

2009-09-24 Thread Nicholas Marriott
Hi Are you expecting a bold font as well? It works fine for me with putty, I'll try xterm when I get home. There are various implementations of bold in 256 colour mode, https://sourceforge.net/tracker/?func=detail&aid=2810418&group_id=200378&atid=973265 may be related. On Thu, Sep 24, 2009

Re: "bold colours" and xterm-256color

2009-09-24 Thread Nicholas Marriott
e 256 colours, or by overriding setaf and setab, something like: set -ag terminal-overrides ",xterm-256color:setaf=\e[3%p1%dm:setab=\E[4%p1%dm" On Thu, Sep 24, 2009 at 05:56:49PM +0200, Frank Terbeck wrote: > Nicholas Marriott : > > Are you expecting a bold font as well? > > Well

Re: "bold colours" and xterm-256color

2009-09-24 Thread Nicholas Marriott
Maybe I got the terminal-overrides string wrong, can you run tmux server-info after starting tmux with it set and tell me what setaf and setab are set to? On Thu, Sep 24, 2009 at 08:41:47PM +0200, Frank Terbeck wrote: > Nicholas Marriott : > > There are differences in how setaf i

Re: "bold colours" and xterm-256color

2009-09-24 Thread Nicholas Marriott
Hmm okay, I managed to use \e for one entry and \E for the other... :-/ time to cut down on the beer I guess ;-). On Thu, Sep 24, 2009 at 10:05:14PM +0200, Frank Terbeck wrote: > Nicholas Marriott : > > Did you use \e or \E in terminal-overrides? tmux expects \e but terminfo > &

Re: osdep_get_name() for Solaris

2009-10-13 Thread Nicholas Marriott
Hi This looks good to me but I want someone to test it on Solaris 10 before I add it (I don't care about Solaris <10). My usual Solaris tester seems to be asleep right now but I'll see if I can rustle someone up later. Thanks On Mon, Oct 12, 2009 at 06:21:44PM -0700, Todd Carson wrote: > I've

Re: osdep_get_name() for Solaris

2009-10-14 Thread Nicholas Marriott
Hi This works fine on Solaris 10 so I have committed it. I think the tty arg being empty may be something funny with ttyname on Solaris which also affects eg list-clients but so far noone has complained or sent a fix so I haven't looked into it. Thanks! On Mon, Oct 12, 2009 at 06:21:44PM -0700

Re: Correct usage of new if-shell option

2009-10-16 Thread Nicholas Marriott
Hi On Fri, Oct 16, 2009 at 11:18:45AM -0700, Thayer Williams wrote: > Could someone explain the correct syntax for the new if-shell command? I > would like to implement a condition where the tmux statusbar is adjusted > based on whether I am starting tmux from the Linux console or from within X.

Re: tmux wiki?

2009-10-25 Thread Nicholas Marriott
Hi There won't be an official wiki, someone else could start one if they like but I'm not going to. There is an examples/ dir for example configs and scripts in CVS but so far hardly anyone has sent me any... On Sun, Oct 25, 2009 at 06:20:26PM +0100, Zrajm C Akfohg wrote: > Is there a tmux wiki

Re: unresponsive to keyboard if one pane is rapidly scrolling

2009-10-27 Thread Nicholas Marriott
Hi tmux commands and output have to share the same resources and you are spending all of them on perl output. This applies when running anything over the network. tmux does very aggressively buffer so it can seem worse, ie it takes longer to respond to other output, and of course it continues for

Re: unresponsive to keyboard if one pane is rapidly scrolling

2009-10-27 Thread Nicholas Marriott
Changing the way buffering of input works is not trivial because everything possible has to be consumed before poll is called again, but checking for that is hard because of partial escape sequences. I'll have to think about it. On Tue, Oct 27, 2009 at 10:13:01AM +0000, Nicholas Marriott

Re: unresponsive to keyboard if one pane is rapidly scrolling

2009-10-27 Thread Nicholas Marriott
s I did the same test under GNU > screen. I opened two windows and ran the perl program in one of them. > I was able to switch between windows (C-a n) without a problem. Also > hitting ^C stopped perl immediately. > > Tmux does seem to be very aggressive about caching output. :) Maybe >

Re: unresponsive to keyboard if one pane is rapidly scrolling

2009-10-27 Thread Nicholas Marriott
Actually this doesn't work :-/. Hold on, more to come... On Tue, Oct 27, 2009 at 07:34:32PM +0000, Nicholas Marriott wrote: > Hi > > Please try the diff below. > > This implements a simple idea - if a terminal isn't accepting our data (the > output buffer appea

Re: No vim spell hilighting in 256-color mode

2009-11-01 Thread Nicholas Marriott
It probably uses the aixterm SGR sequences which tmux didn't understand until recently, please check if it works with CVS HEAD. On Sun, Nov 01, 2009 at 04:06:08PM -0800, Thayer Williams wrote: > Within tmux, vim doesn't display spellcheck highlighting under the following > conditions: > > * t_

Re: Current session name?

2009-11-19 Thread Nicholas Marriott
Hi Why do you need the session name? If you omit it from -t to any command then tmux try to detect the the current session itself. Not that I don't believe there are reasons to want it, but I haven't come across any yet. You can always do something like: tmux ls|head -$(echo $TMUX|awk -F, '{pri

Re: Current session name?

2009-11-19 Thread Nicholas Marriott
Hi Please try this (against CVS HEAD): Index: cmd-display-message.c === RCS file: /cvs/src/usr.bin/tmux/cmd-display-message.c,v retrieving revision 1.4 diff -u -p -r1.4 cmd-display-message.c --- cmd-display-message.c 13 Nov 200

Re: tmux exiting when closing last window in session, yet other sessions attached.

2009-11-20 Thread Nicholas Marriott
Hi > I find it annoying that a tmux client exits when the last window in a session > has been closed, yet there are other sessions not attached to any client. > > If i then do tmux attach, the last unattached session is selected. When you do "tmux attach", the most recently used session is attac

Re: Is it possible to bind arrow keys?

2009-11-22 Thread Nicholas Marriott
Yes, they were missed, I will add them. On Sun, Nov 22, 2009 at 10:40:13PM +0100, Jes??s Guerrero wrote: > On Sun, 22 Nov 2009 21:30:56 +, Thomas Adam > wrote: > > 2009/11/22 Jes??s Guerrero : > >> the current window. I've read the man page for tmux and for what I see > in > >> the KEY BINDI

Re: Colliding with mc's shift-f6 binding

2009-11-25 Thread Nicholas Marriott
Hi What version of tmux are you using, on what platform, with what terminal emulator and with what TERM setting inside and outside tmux? Also, if you run cat and then press F6 and Shift-F6, what does it show? Inside and outside tmux. Some terminal emulators turn Shift-F6 into F16 which is probab

Re: Colliding with mc's shift-f6 binding

2009-11-25 Thread Nicholas Marriott
Hi On Wed, Nov 25, 2009 at 02:06:52PM +0100, Jes??s Guerrero wrote: > On Wed, 25 Nov 2009 12:49:55 +0000, Nicholas Marriott > wrote: > > Hi > > > > What version of tmux are you using, on what platform, with what terminal > > emulator and with what TERM setting insi

Re: Colliding with mc's shift-f6 binding

2009-11-25 Thread Nicholas Marriott
What does cat show for F6 and Shift-F6 inside screen? This may be another case where screen ignores terminfo and does its own thing and tmux does not. On Wed, Nov 25, 2009 at 03:09:08PM +0100, Jes??s Guerrero wrote: > On Wed, 25 Nov 2009 13:25:26 +0000, Nicholas Marriott > wrote:

Re: Colliding with mc's shift-f6 binding

2009-11-25 Thread Nicholas Marriott
Weird, it must be something in mc then I would guess.. On Wed, Nov 25, 2009 at 03:57:19PM +0100, Jes??s Guerrero wrote: > On Wed, 25 Nov 2009 14:39:09 +0000, Nicholas Marriott > wrote: > > What does cat show for F6 and Shift-F6 inside screen? > > It seems to show exactly

Re: can not switch numlock inside tmux

2009-11-28 Thread Nicholas Marriott
Hi tmux doesn't receive a key press when you press num lock, so it can't do anything. The keypad state is controlled by the application, although in 1.1 there is a bug which means application and keypad keys mode are the wrong way round. For numlock to do anything, your terminal needs to actuall

Re: can not switch numlock inside tmux

2009-11-28 Thread Nicholas Marriott
tmux always puts the keypad into application mode always which is probably wrong. You can try CVS HEAD which fixes the bug and means you will get numbers by default but other than that until I get time to make it set the cursor mode based on what the application inside does you will have to put up

Re: Build a key binding hierarchy

2009-12-01 Thread Nicholas Marriott
Someone was talking about allowing two character commands which would allow you to do this (or doing a hierarchy thing by having a command to switch to a different prefix command table, although I don't really see a huge need for that although it may be simpler). No sign of any code yet in either c

Re: Build a key binding hierarchy

2009-12-01 Thread Nicholas Marriott
Sure, there is no hurry. If someone else wants it more quickly, they can do it :-). On Tue, Dec 01, 2009 at 12:27:27PM +, Thomas Adam wrote: > 2009/12/1 Nicholas Marriott : > > Someone was talking about allowing two character commands which would allow > > you > > t

Re: .tmux.conf woes

2009-12-05 Thread Nicholas Marriott
Does the same happen if you build tmux from SF CVS? On Sat, Dec 05, 2009 at 03:39:09PM -0600, Dan Velleman wrote: > I'm running the DarwinPorts port of tmux, v1.1, on Mac OS 10.5. As > far as I can tell, it is not running configuration files at all. > Things I have tried: > > * putting command

Re: .tmux.conf woes

2009-12-05 Thread Nicholas Marriott
lem. > > On Sat, Dec 5, 2009 at 5:49 PM, Nicholas Marriott > wrote: > > Does the same happen if you build tmux from SF CVS? > > > > > > > > On Sat, Dec 05, 2009 at 03:39:09PM -0600, Dan Velleman wrote: > >> I'm running the DarwinPorts port of tm

Re: tmux search in copy mode

2009-12-10 Thread Nicholas Marriott
Hi The current behaviour is the best compromise between vi and emacs that I could come up with, as well as being easy to implement and understand. You can search forward with "n". On Thu, Dec 10, 2009 at 02:26:26PM +0100, Zrajm C Akfohg wrote: > Searching in copy mode: I thought search was tota

Re: unicode problem

2009-12-30 Thread Nicholas Marriott
Try 1.1 or CVS HEAD. On Tue, Dec 29, 2009 at 11:42:28PM -0500, Aron Griffis wrote: > Hi, > > I use a bash prompt that looks like this: > > ? 0 agrif...@tartufo ~ > $ > > Each of those leading dashes is the UTF-8 octal sequence 342 224 > 201 according to /usr/bin/od. This works

Re: how to unbreak a pane

2010-01-08 Thread Nicholas Marriott
swap-pane or (in CVS HEAD) join-pane. On Fri, Jan 08, 2010 at 09:39:47AM -0500, Aron Griffis wrote: > I've read the docs through a few times and I can't figure this > out... How can I make a window become a pane on another window? > > Thanks, > Aron > > -

Re: sharing between users

2010-01-08 Thread Nicholas Marriott
You can use Unix file permissions to control access to the socket. On Fri, Jan 08, 2010 at 09:41:45AM -0500, Aron Griffis wrote: > In screen I use the ACL features to share my sessions with other > users. Is anything like this available with tmux? > > Thanks, > Aron > >

Re: First Use How to

2010-01-16 Thread Nicholas Marriott
http://www.openbsd.org/faq/faq7.html#tmux On Sat, Jan 16, 2010 at 06:21:30PM +0100, Michel Le Cocq wrote: > Hi all. > I'm a screen user since 5 or 6 years. > > After what I read I think I could have better with tmux. > > But I need some help or good web site or tutorial to look at. > > thanks

Re: panes, windows, sessions vs screen's behaviour.

2010-01-18 Thread Nicholas Marriott
Hi > Hello. Given how much cleaner tmux code and configuration is, I'd love > to be able to switch from screen. For most of what I do, this is quite > doable. However, there are some differences from screens behaviour, and > screen's is strongly preferable to me. > > 1. When I have two clients

Re: panes, windows, sessions vs screen's behaviour.

2010-01-18 Thread Nicholas Marriott
On Mon, Jan 18, 2010 at 02:48:32PM -0700, Aaron Denney wrote: > On Mon, Jan 18, 2010 at 09:16:12PM +0000, Nicholas Marriott wrote: > > > 1. When I have two clients connected to the same session, I want them > > > to be able to select windows independently, rather than being

Re: mutt with tmux

2010-01-19 Thread Nicholas Marriott
You didn't enable UTF-8 fully, look at the FAQ. You need to tell tmux the terminal supports UTF-8 either by setting LANG or using tmux -u when you attach. On Tue, Jan 19, 2010 at 01:53:07PM +0100, Michel Le Cocq wrote: > Hi all. > I usualy used screen with severals mutt inside, I wanted to do the

Re: Patch for square copy.

2010-01-20 Thread Nicholas Marriott
Hi Thanks for your mail and diff, On Tue, Jan 19, 2010 at 07:14:51PM -0800, Robin Lee Powell wrote: > > Find attached; this is basically the c and C keys from GNU Screen's > copy mode, plus a block mode toggle. Now, the J key. :) I've converted your diff to a unified diff below since it is mu

Re: launch tmux with several window and command

2010-01-20 Thread Nicholas Marriott
You can also do it from the command line: tmux new -d\; neww 'exec foo2'\; neww 'exec foo3'\; attach Although in this case would probably want something like: smail() { tmux attach -tmail 2>/dev/null || \ tmux new -dsmail\; neww 'exec mutt blah'\; neww 'exec foo3'\; attach } On

Re: launch tmux with several window and command

2010-01-20 Thread Nicholas Marriott
On Wed, Jan 20, 2010 at 03:06:45PM -0800, Robin Lee Powell wrote: > On Wed, Jan 20, 2010 at 11:39:40PM +0100, Michel Le Cocq wrote: > > With my old screen I had an alias : smail wich launch screen with > > a special .screenrc like this : > > > > screen -t boiteA mutt -F $HOME/.mutt/config/.muttrc_

Re: man page updates (was Re: launch tmux with several window and command)

2010-01-21 Thread Nicholas Marriott
t-prompt for? It seems to just ask for a number and > complain if it's not a window number; how is that useful? It does the same as: command-prompt -pindex "select-window -t '%%'" (Or what it would do if I hadn't somehow broken it in HEAD.) So it could probably be

Re: mouse support

2010-01-22 Thread Nicholas Marriott
In HEAD you can use the mouse-select-pane option. I'd like to have better mouse support but it isn't a big thing for me and I don't have time to do non-big things right now. On Fri, Jan 22, 2010 at 04:04:22PM -0800, Keith Miller wrote: >I'm a long time screen user and am itching to switch ov

Re: new-session vs. new-session -d

2010-01-22 Thread Nicholas Marriott
On Fri, Jan 22, 2010 at 04:21:06PM -0500, Sudish Joseph wrote: > Nicholas Marriott writes: > > On Thu, Jan 21, 2010 at 01:33:56AM -0800, Robin Lee Powell wrote: > >> Why does "tmux new-session vim \; split-window \; attach" not > >> work? Why does it need

Re: new-session vs. new-session -d

2010-01-23 Thread Nicholas Marriott
I was rambling a bit when I wrote this (had just got home), I'll add your suggestion to the todo list, but if you want to send me the changes it'd be great :-). On Sat, Jan 23, 2010 at 02:42:42AM +, Nicholas Marriott wrote: > On Fri, Jan 22, 2010 at 04:21:06PM -0500, Sudish

Re: mouse support

2010-01-23 Thread Nicholas Marriott
using C-t C-l. Similarly for up/down/left panes using C-t >C-k, C-j, C-h keys. > >On Fri, Jan 22, 2010 at 9:02 PM, Nicholas Marriott ><[1]nicholas.marri...@gmail.com> wrote: > > In HEAD you can use the mouse-select-pane option. > > I'd like to h

Re: Patch for square copy.

2010-01-23 Thread Nicholas Marriott
Hi Thanks for updated diff, Comments inline. > Index: mode-key.c > === > RCS file: /cvsroot/tmux/tmux/mode-key.c,v > retrieving revision 1.36 > diff -u -r1.36 mode-key.c > --- mode-key.c4 Dec 2009 22:14:47 - 1.36 >

Re: [Patch] Using C-y/C-e for scroll-up/down in vi-mode

2010-01-23 Thread Nicholas Marriott
Committed, thanks! On Sat, Jan 23, 2010 at 03:59:24AM -0800, Micah Cowan wrote: > Since October, Ctrl-Up and Ctrl-Down allows the user to scroll up and > down by single lines. The vi-copy mode provides an additional set of > bindings for this, to K and J. > > Vi has had this feature bound to C-y

Re: man page updates (was Re: launch tmux with several window and command)

2010-01-23 Thread Nicholas Marriott
Hi Thanks for the diff, > Index: tmux.1 > === > RCS file: /cvsroot/tmux/tmux/tmux.1,v > retrieving revision 1.221 > diff -u -r1.221 tmux.1 > --- tmux.119 Jan 2010 00:46:30 - 1.221 > +++ tmux.121 Jan 2010 09:33:23 -00

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
Pretty simple, please test: Index: server-fn.c === RCS file: /cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.33 diff -u -p -r1.33 server-fn.c --- server-fn.c 3 Jan 2010 12:51:05 - 1.33 +++ server-fn.c 23 Jan 2010 1

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
23, 2010 at 07:25:06PM +, Nicholas Marriott wrote: > Pretty simple, please test: > > Index: server-fn.c > === > RCS file: /cvs/src/usr.bin/tmux/server-fn.c,v > retrieving revision 1.33 > diff -u -p -r1.33 server-

Re: server crash bug

2010-01-23 Thread Nicholas Marriott
Committed to OpenBSD, will be in SF later. Thanks. On Sat, Jan 23, 2010 at 12:16:37PM -0800, Robin Lee Powell wrote: > Bizarrely, that wouldn't apply with patch; had to do it manualy. > > Anyhoo, yep, looks fine! > > -Robin > > On Sat, Jan 23, 2010 at 07:27:30PM +000

Re: new-session vs. new-session -d

2010-01-23 Thread Nicholas Marriott
> Index: tmux.1 > === > RCS file: /cvsroot/tmux/tmux/tmux.1,v > retrieving revision 1.222 > diff -u -r1.222 tmux.1 > --- tmux.122 Jan 2010 17:28:34 - 1.222 > +++ tmux.123 Jan 2010 20:37:14 - > @@ -111,6 +111,8 @@ >

Re: new-session vs. new-session -d

2010-01-24 Thread Nicholas Marriott
I like this, but I want to have a look at the code and figure out why it ends it. It would be nice to fix this nonobvious behaviour if possible, rather than documenting it. The entire command is sent up from the client to the server and broken up there, so I can't offhand think of a reason it shou

Re: Bug and fix: Graphic glitch on scroll-up when cursor on last line

2010-01-24 Thread Nicholas Marriott
Ugh, another copy mode bug. Thanks for your diff. We need to redraw two lines because if the $ is at the end of the line it will have been scrolled. I think it is enough just to change window_copy_write_line, although I'll move the check up a bit I think. On Sat, Jan 23, 2010 at 11:14:24PM -08

Re: new-session vs. new-session -d

2010-01-24 Thread Nicholas Marriott
tx->curclient = ctx->cmdclient; + ctx->cmdclient = NULL; + } + } } - return (0); + return (retval); } void On Sun, Jan 24, 2010 at 01:17:21PM +0000, Nicholas Marriott wrote: > I like this, but

Re: [Patch] Using C-y/C-e for scroll-up/down in vi-mode

2010-01-24 Thread Nicholas Marriott
I'm not sure we need to document them both, anyone who wants them will try them and find out quickly enough. I think the key bindings should follow vi as far as possible (unless there is a good reason not to) and that's what we should mention, the others are just conveniences because they don't hap

Re: Bug and fix: Graphic glitch on scroll-up when cursor on last line

2010-01-24 Thread Nicholas Marriott
On Sun, Jan 24, 2010 at 11:35:34AM -0800, Micah Cowan wrote: > Nicholas Marriott wrote: > > Ugh, another copy mode bug. > > > > Thanks for your diff. > > > > We need to redraw two lines because if the $ is at the end of the line it > > will > > have

Re: scrolling with terminal?

2010-01-25 Thread Nicholas Marriott
set -g terminal-overrides 'xterm*:smcup@:rmcup@' Don't expect what is in the terminal history to necessarily always make much sense though. On Sun, Jan 24, 2010 at 09:43:16PM -0800, Ari Steinberg wrote: > Hi, > I just stumbled upon tmux - it's really nice! ?So far the only thing > that I find my

Re: [Patch] vi-copy word-movement improvements

2010-01-25 Thread Nicholas Marriott
Hi Thanks for the diff, I think I'd prefer to see a change to add a vi-style next-word now and the nonspace stuff separately, if that is possible. If it is going to be too time-consuming don't worry. > Index: mode-key.c > === > ---

Re: [Patch] Copy mode: goto-first-line and goto-last-line

2010-01-25 Thread Nicholas Marriott
Looks great, I'll test it and commit it later on. Thanks On Mon, Jan 25, 2010 at 02:46:39AM -0800, Micah Cowan wrote: > This patch introduces new commands to jump to the top and bottom of the > history, in copy mode. In both vi mode and emacs mode, they are bound to > Ctrl-Home and Ctrl-End. In

Re: Couple of issues from tmux vs screen

2010-01-27 Thread Nicholas Marriott
On Wed, Jan 27, 2010 at 10:05:14AM -0500, Levesque, Jean-Yves wrote: >All, > >first post. I did not find the answer to my questions ion the web. >I am starting to use tmux and I like it so far. However there are two >small issues that keep me from leaving screen yet. > >- The b

Re: [Patch] status-drawing crash

2010-01-27 Thread Nicholas Marriott
On Mon, Jan 25, 2010 at 07:34:02PM -0800, Micah Cowan wrote: > I found a bug that can cause the status bar to crash when the > window-list fills up. It only manifests when status-left is empty. > > The cause was a one-off in status.c. During calculation of how much > space will be available to the

Re: [Patch] vi-copy word-movement improvements

2010-01-27 Thread Nicholas Marriott
I've committed the e diff, I'll look at the other one later on. On Mon, Jan 25, 2010 at 11:09:44PM -0800, Micah Cowan wrote: > New version of the patch. It's now split into two separate diffs, and > meant to apply after your reworking of window_copy_cursor_next_word > (which isn't in Sourceforge

Re: [Patch] status-drawing crash

2010-01-27 Thread Nicholas Marriott
Committed, thanks. On Mon, Jan 25, 2010 at 07:34:02PM -0800, Micah Cowan wrote: > I found a bug that can cause the status bar to crash when the > window-list fills up. It only manifests when status-left is empty. > > The cause was a one-off in status.c. During calculation of how much > space wil

Re: [Patch] status-drawing crash

2010-01-27 Thread Nicholas Marriott
Ah yeah it assumes that if the cellsizes match they are also the same as sx, which they don't have to be. It should be fixed to use cellsize probably, since if they are the same there isn't any point in checking further. On Wed, Jan 27, 2010 at 12:38:08PM -0800, Micah Cowan wrote:

Re: Setting screen-256color automatically

2010-01-28 Thread Nicholas Marriott
I can't reproduce your behaviour, if I use your command (with true not tput) then there is a race whether I get TERM=screen or not in the first window but after that I always get TERM=screen-256color in the others. I can check with pgrep and after the first window is created, true is no longer runn

Re: Discovery re auto-titling and status-line formatting

2010-01-28 Thread Nicholas Marriott
I considered at one point being able to set rules for running commands based on the window title, although this would be a another case where it would be nice to have hooks and an if command. On Wed, Jan 27, 2010 at 10:48:03PM -0800, Micah Cowan wrote: > Micah Cowan wrote: > > So, I recently dis

Re: [Patch] Small typo fix in manpage

2010-01-28 Thread Nicholas Marriott
Fixed, thanks. On Wed, Jan 27, 2010 at 11:10:19PM -0800, Micah Cowan wrote: > > -- > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network i

Re: new-session vs. new-session -d

2010-01-30 Thread Nicholas Marriott
No, I didn't make that change yet. I'll commit this one instead, thanks for testing. On Fri, Jan 29, 2010 at 05:56:49PM -0500, Sudish Joseph wrote: > Nicholas Marriott writes: > > Please try this. > > > > Previously, new and attach were errors from inside

Re: [Patch] Scroll up/down in choose/output

2010-01-30 Thread Nicholas Marriott
I'll try to get to this and your other diff this weekend. On Thu, Jan 28, 2010 at 02:12:05AM -0800, Micah Cowan wrote: > This patch adds support for Ctrl-up/Ctrl-down (and C-y/C-e for vi) to > choice-mode and output-mode. It also binds C-b/C-f to page-up/page-down > for those modes in the vi bind

Re: new-session vs. new-session -d

2010-01-30 Thread Nicholas Marriott
I've committed this, thanks! On Fri, Jan 29, 2010 at 05:56:49PM -0500, Sudish Joseph wrote: > Nicholas Marriott writes: > > Please try this. > > > > Previously, new and attach were errors from inside tmux but that has now > > been > > fixed so even eg &quo

Re: [Patch] Scroll up/down in choose/output

2010-02-01 Thread Nicholas Marriott
This is cool, committed, thanks! On Thu, Jan 28, 2010 at 02:12:05AM -0800, Micah Cowan wrote: > This patch adds support for Ctrl-up/Ctrl-down (and C-y/C-e for vi) to > choice-mode and output-mode. It also binds C-b/C-f to page-up/page-down > for those modes in the vi bindings. > > -mjc > --

Re: Patch: Active pane number color

2010-02-03 Thread Nicholas Marriott
This looks cool, will test it tonight. In HEAD the pane border of the active pane is highlighted (only helps with >2 panes though) On Wed, Feb 03, 2010 at 08:06:27AM -0500, Paul Hoffman wrote: > The attached patch causes the display-panes command to show the active > pane's number in a distinct

Re: [Patch] Don't require -L when $TMUX is set

2010-02-03 Thread Nicholas Marriott
Nice idea, will have a better look tonight but I'm not sure I like the idea of makesockpath calling exit(). On Tue, Feb 02, 2010 at 11:32:26PM -0800, Micah Cowan wrote: > So, at some point when I was testing some of the recent keybindings I > introduced into tmux, I ran a separate tmux instance w

Re: [patch] support for a tiled layout

2010-02-03 Thread Nicholas Marriott
Looks fine but I'll test it later. On Tue, Feb 02, 2010 at 04:41:13PM -0800, Liam Bedford wrote: > Not sure if this fits with what you're trying to do, but it seems > useful to me :) > > This patch adds another layout mode, called tiled, which tries > to tile the panes in a number of rows. It co

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
Hi The commands used for modes are a completely separate namespace than standard commands and there is no command for saving the buffer. You can just bind it to a prefixed key then do use that as normal inside copy mode (ie with the prefix). -c is to bind a key for command mode when using vi key

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote: > Nicholas Marriott wrote: > > > The commands used for modes are a completely separate namespace than > > standard commands and there is no command for saving the buffer. > > > > You can just bind it

Re: list-keys shows wrong keys

2010-02-03 Thread Nicholas Marriott
On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote: > Hi, > > tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686 > > $ tmux list-keys >... >o: send-keys l o g i n Space - p Space - f Space i n o >... >g: send-keys i n o - n e w s @ s p o t

Re: [Patch] Don't require -L when $TMUX is set

2010-02-03 Thread Nicholas Marriott
esockpath calls are now). And avoiding the > double with either an extra flag var (which I know you're not crazy > about) or a goto looked even uglier to me. Maybe you'll find a solution > you like better. > > -m

Re: Patch: Active pane number color

2010-02-03 Thread Nicholas Marriott
Looks fine, any chance of adding it to the man page too? On Wed, Feb 03, 2010 at 08:06:27AM -0500, Paul Hoffman wrote: > The attached patch causes the display-panes command to show the active > pane's number in a distinct color so that you can see at glance which > pane you're in. > > The patch

Re: [patch] support for a tiled layout

2010-02-03 Thread Nicholas Marriott
This has a couple of warnings (trivially fixed). It also cores when used on a very small terminal (try making 4 panes then resizing the terminal to 2x2 terminal and changing layout). I can't see why offhand but let me know if you can't find it and I'll have a look. Note that main-h and main-v als

Re: panes, windows, sessions vs screen's behaviour.

2010-02-03 Thread Nicholas Marriott
Hi Looks cool. In later tmux you can bind multiple prefix keys eg (^A, ^B), I find that handy if I ever attach to the inner tmux on its own. On Fri, Jan 29, 2010 at 06:56:52PM -0700, Aaron Denney wrote: > I've gotten the proposed solution of tmux-in-tmux to work fairly well. > For others amusem

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
0 at 4:32 PM, Nicholas Marriott ><[1]nicholas.marri...@gmail.com> wrote: > > On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote: > > Nicholas Marriott wrote: > > > > > The commands used for modes are a completely separate namespace

Re: How to checkout the latest source code

2010-02-03 Thread Nicholas Marriott
OpenBSD is the primary repository at the moment because it is easier for me, SF is sync'd up fairly often by tcunha. It should be up-to-date bar a couple of days right now I think. On Wed, Feb 03, 2010 at 05:53:18PM -0500, Ankur Nayak wrote: >Hi, > >How do I checkout the newest source co

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
clemens fischer wrote: > Nicholas Marriott wrote: > > > On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote: > >> Did you mean I should use either: > >> > >> bind-key > save-buffer /home/ino/hardcopy.txt > >> > >> or > &

Re: list-keys shows wrong keys

2010-02-03 Thread Nicholas Marriott
Ah, sorry, I missed that. Can you try HEAD? I think I fixed a bug like this recently. On Thu, Feb 04, 2010 at 12:04:28AM +0100, clemens fischer wrote: > Nicholas Marriott wrote: > > > On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote: > >> Hi, > >

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
i think Micah Cowan is or was working on command prefixes in copy mode, this would be nice to do with that. On Wed, Feb 03, 2010 at 11:17:18PM +, Nicholas Marriott wrote: > No, but it would be nice to have, I'll check if it's on the todo list. > > > On Wed, Feb 03, 20

Re: How to checkout the latest source code

2010-02-03 Thread Nicholas Marriott
Yes, but it won't build on any platform except OpenBSD, SF has the portable version. On Wed, Feb 03, 2010 at 06:19:14PM -0500, Ankur Nayak wrote: >Can I checkout code from the OpenBSD repository? > >On Wed, Feb 3, 2010 at 6:18 PM, Nicholas Marriott ><[1]nichola

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
"lsk -t vi-copy" will show you key bindings for mode-keys vi in copy mode, "lsk -t emacs-copy" for when mode-keys emacs. On Thu, Feb 04, 2010 at 12:11:27AM +0100, clemens fischer wrote: > Nicholas Marriott wrote: > > > On Wed, Feb 03, 2010 at 09:43:22PM +0100,

Re: bind -t cmd-with-args?

2010-02-03 Thread Nicholas Marriott
Oh yeah, of course you can do it with a command, you just can't do it immediately from copy mode. On Thu, Feb 04, 2010 at 12:37:40AM +0100, clemens fischer wrote: > Ankur Nayak wrote: > > > A related question. Is it possible to copy buffers to specific > > registers, just as one can do in vim? >

Re: bind -t cmd-with-args?

2010-02-04 Thread Nicholas Marriott
register name (say, "ay to yank into register a)? > > Nicholas Marriott wrote > > i think Micah Cowan is or was working on command prefixes in copy mode, this > > would be nice to do with that. > > > > > > On Wed, Feb 03, 2010 at 11:17:18PM +, Nicholas

Re: bind -t cmd-with-args?

2010-02-04 Thread Nicholas Marriott
7;t be used in vi-copy, where there is no "insert" mode > possible; it's only meant to distinguish from "insert" mode in vi-edit > (the table used for editing the ":" command line at the bottom). > > -mjc > > Nicholas Marriott wrote: > >

Re: [Patch] vi-copy word-movement improvements

2010-02-04 Thread Nicholas Marriott
I'd like this patch to get in before I start working on the numeric > command-prefix stuff, so I don't have to rework this patch to adjust for > those. And also so I can get to work on a patch to allow the user to > specify what qualifies as a delimiter for the purposes of movement-

Re: list-keys shows wrong keys

2010-02-04 Thread Nicholas Marriott
I think it would be better in the FAQ or NOTES, used to be in NOTES but I deleted it, can't remember why. On Thu, Feb 04, 2010 at 07:47:47AM -0800, Micah Cowan wrote: > clemens fischer wrote: > > Nicholas Marriott wrote: > > > >> Ah, sorry, I missed that. Can you tr

Re: Patch: Active pane number color

2010-02-04 Thread Nicholas Marriott
Looks fine, thanks, I'll put it in tonight if I have time. On Thu, Feb 04, 2010 at 06:18:02AM -0500, Paul Hoffman wrote: > On Thu, Feb 04, 2010 at 06:01:24AM -0500, Paul Hoffman wrote: > > On Wed, Feb 03, 2010 at 10:06:20PM +0000, Nicholas Marriott wrote: > > > Looks fin

Re: Patch: Active pane number color

2010-02-04 Thread Nicholas Marriott
Committed with a couple of minor tweaks, thanks. On Thu, Feb 04, 2010 at 06:18:02AM -0500, Paul Hoffman wrote: > On Thu, Feb 04, 2010 at 06:01:24AM -0500, Paul Hoffman wrote: > > On Wed, Feb 03, 2010 at 10:06:20PM +, Nicholas Marriott wrote: > > > Looks fine, any chance o

Re: [Patch] Don't complain about nested tmux if it's a new server.

2010-02-04 Thread Nicholas Marriott
Hi This is a cool idea, tmux should definitely just do the right thing. We could call realpath() to get around the // issue. If we did it on path in main.c and that would clean up TMUX as well. Is it too early to do it in main.c? I don't think it is necessary to use stat(), a string comparison

Re: [Patch] Don't require -L when $TMUX is set

2010-02-04 Thread Nicholas Marriott
ome silly user specifies both -S _and_ -L. > > -mjc > > Nicholas Marriott wrote: > > How about this instead? I think it should have the same effect. > > > > Index: tmux.c > > === > > RCS file

Re: [Patch] vi-copy word-movement improvements

2010-02-04 Thread Nicholas Marriott
nst char *separators) { struct window_copy_mode_data*data = wp->modedata; u_intpx, py; @@ -1247,7 +1252,7 @@ window_copy_cursor_previous_word(struct for (;;) { if (px > 0) { px--; -

Re: list-keys shows wrong keys

2010-02-04 Thread Nicholas Marriott
It is in the release notes already, of course. On Thu, Feb 04, 2010 at 08:17:44PM +0100, clemens fischer wrote: > Nicholas Marriott wrote: > > > Ah, sorry, I missed that. Can you try HEAD? I think I fixed a bug like > > this recently. > > Right, HEAD, the portable

Re: "take-prompt" command in table "choice"?

2010-02-04 Thread Nicholas Marriott
On Thu, Feb 04, 2010 at 08:53:39PM +0100, clemens fischer wrote: > Hi, > > can tmux be given a command "take-prompt" for the *choice tables? > I wanted to make a mapping to list the various mappings, thus: > > bind 'h' command-prompt \ > -p vi-edit,emacs-edit,vi-choice,emacs-choice,vi-copy,em

  1   2   3   4   5   6   7   8   9   10   >