Re: Italics in tmux

2011-04-09 Thread Tiago Resende
OK, now this is embarrassing. This time I got it right, I swear. Sorry for cluttering everyone's mailboxes! FAQ * vim or $otherprogram displays reverse video instead of italics, even though tmux displays italics just fine in the status line. What's wrong? Screen's terminfo description

Re: Italics in tmux

2011-04-09 Thread Tiago Resende
Oops! Tried my sed code and it was wrong, I forgot the commas. Sorry! Let me try it again: FAQ * vim or $otherprogram displays reverse video instead of italics, even though tmux displays italics just fine in the status line. What's wrong? Screen's terminfo description lacks italics mod

Re: Key binding problem

2011-04-09 Thread Ton van den Heuvel
Yes I did set escape-time to zero to prevent a slight delay when switching modes in Vim (I haven't figured out any other way to prevent the delay). It seems there was a problem with the way kIC is defined in the urxvt terminfo file: http://us.generation-nt.com/bug-446444-john-e-davis-bug-446444-w

Re: Key binding problem

2011-04-09 Thread Nicholas Marriott
You haven't changed escape-time have you? \e2 is the start if kIC with rxvt-unicode so there will be a delay before tmux detects it as M-2 but it should still work. Please use rxvt-unicode-256color, send the output of "tmux info" and also kill tmux entirely, run it with -v, press M-2 a couple

Re: Key binding problem

2011-04-09 Thread Ton van den Heuvel
The output is the same for both terminals, and as expected: ^[2 (using cat > /dev/null). infocmp rxvt-unicode-256color: # Reconstructed via infocmp from file: /usr/share/terminfo/r/rxvt-unicode-256color rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window System), am

Re: Key binding problem

2011-04-09 Thread Nicholas Marriott
Please send the output of "infocmp rxvt-unicode-256color" and "infocmp xterm". On Sat, Apr 09, 2011 at 05:02:53PM +0200, Ton van den Heuvel wrote: > My .tmux.conf defines the following key bindings to switch windows: > > bind -n M-1 select-window -t:1 > bind -n M-2 select-window -t:2 > bind -n M

Key binding problem

2011-04-09 Thread Ton van den Heuvel
My .tmux.conf defines the following key bindings to switch windows: bind -n M-1 select-window -t:1 bind -n M-2 select-window -t:2 bind -n M-3 select-window -t:3 bind -n M-4 select-window -t:4 In case tmux is started using gnome-terminal with TERM=xterm all of these bindings work. Starting tmux us

Re: Italics in tmux

2011-04-09 Thread Tiago Resende
On Saturday, 2011-04-09, at 08:56:25 +0100, Nicholas Marriott wrote: > So unless there are any other compelling reasons for tmux to have its > own terminfo I'm not going to recommend people do this unless they > actually need to use italics. I understand. > Although if you'd like to write an entr

Re: Window numbering

2011-04-09 Thread Thomas Adam
On 9 April 2011 14:18, Ton van den Heuvel wrote: > Hi, > > I have setup Alt+1, Alt+2 etc. to switch windows, where Alt+1 switches > to the first window labeled '0'. A minor annoyance. I was wondering > whether it is possible to let window numbers start at 1? Read up about "base-index" in "man tmu

Window numbering

2011-04-09 Thread Ton van den Heuvel
Hi, I have setup Alt+1, Alt+2 etc. to switch windows, where Alt+1 switches to the first window labeled '0'. A minor annoyance. I was wondering whether it is possible to let window numbers start at 1? Regards, Ton -- Xper

Re: Italics in tmux

2011-04-09 Thread Nicholas Marriott
Thanks, Since there seems to only be one terminal in the default terminfo database that supports sitm (iris-color), I don't think it is worth going with this officially. I don't really want to give the impression that tmux needs its own terminfo entry if possible - we would need to make it actual

Re: Italics in tmux

2011-04-09 Thread Nicholas Marriott
Applied, thanks. On Fri, Apr 08, 2011 at 10:35:38PM -0300, Tiago Resende wrote: > On Friday, 2011-04-08, at 23:46:38 +0100, Nicholas Marriott wrote: > > I think it would be better if this only uses sitm if it exists and > > uses smso if it does not. > > I have no idea why I didn't think of this