Get tmux to respect xterm's tab name

2012-09-29 Thread Alan
I've been using something like "\e]1;TAB_NAME\a" in my PS1 environment
variable to set my terminal emulator's tab name.

I use something like "\e]2;WINDOW_TITLE\a" in my PS1 to set the terminal
emulator's titlebar name.

When I use tmux, I've been using:

set-option -g set-titles on
set-option -g set-titles-string "#T [tmux #I: #W]"

which works for the terminal emulator's titlebar name, but clobbers the
terminal emulator's tab name, TAB_NAME, to be the same as that of the
titlebar.

How can I preserve the tab name I previously specified?

Please CC me in your response.

Thanks so much!

(Note: I've previously been using screen, which doesn't clobber the tab
name when using the 'hardstatus' setting in .screenrc.)
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Get tmux to respect xterm's tab name

2012-10-01 Thread Alan
Hi Nicholas,

Thanks so much for your reply.

I'm closer, but still not getting it. Right now, I have in my ~/.tmux.conf:

set-option -g set-titles on
set-option -g set-titles-string "#T [tmux #I: #W]"
set-option -g terminal-overrides "*:tsl=\e]2;,*:fsl=\a"

But it gives me:

computer_name ~ [tmux 0: bash]a

in the window title (notice the extra "a" at the end), and then it outputs:

?25l

in the area where you type commands in the terminal. The weird thing is
that once I type in the terminal, the "?25l" characters there are
overwritten.

Is that the right syntax for "tsl" and "fsl"? What else am I doing wrong?

Thanks again.

On Sat, Sep 29, 2012 at 9:16 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:

> You can control what escape sequences tmux uses to set the title by
> changing the tsl and fsl terminfo entries (with tmux terminal-overrides
> option or a custom terminfo). By default it uses tsl=\e]0; which is
> the xterm sequence to change icon name and window title, I suspect you
> want to change that to tsl=\e]2;
>
>
>
> On Thu, Sep 27, 2012 at 06:36:32PM -0400, Alan wrote:
> >I've been using something like "\e]1;TAB_NAME\a" in my PS1 environment
> >variable to set my terminal emulator's tab name.
> >
> >I use something like "\e]2;WINDOW_TITLE\a" in my PS1 to set the
> terminal
> >emulator's titlebar name.
> >
> >When I use tmux, I've been using:
> >
> >set-option -g set-titles on
> >set-option -g set-titles-string "#T [tmux #I: #W]"
> >
> >which works for the terminal emulator's titlebar name, but clobbers
> the
> >terminal emulator's tab name, TAB_NAME, to be the same as that of the
> >titlebar.
> >
> >How can I preserve the tab name I previously specified?
> >
> >Please CC me in your response.
> >
> >Thanks so much!
> >
> >(Note: I've previously been using screen, which doesn't clobber the
> tab
> >name when using the 'hardstatus' setting in .screenrc.)
>
> >
> --
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://ad.doubleclick.net/clk;258768047;13503038;j?
> > http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>
> > ___
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Get tmux to respect xterm's tab name

2012-10-01 Thread Alan
When I do that, I get:

computer_name ~ [tmux 0: bash]007

in the window title, and also:

?25l

in the terminal. Any other hints? Or do you think this may be a bug with
the terminal I'm using?

Thanks.

On Sun, Sep 30, 2012 at 6:40 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:

> Change \a to \007.
>
>
> On Sun, Sep 30, 2012 at 02:58:54PM -0400, Alan wrote:
> >Hi Nicholas,
> >
> >Thanks so much for your reply.
> >
> >I'm closer, but still not getting it. Right now, I have in my
> >~/.tmux.conf:
> >
> >set-option -g set-titles on
> >set-option -g set-titles-string "#T [tmux #I: #W]"
> >set-option -g terminal-overrides "*:tsl=\e]2;,*:fsl=\a"
> >
> >But it gives me:
> >
> >computer_name ~ [tmux 0: bash]a
> >
> >in the window title (notice the extra "a" at the end), and then it
> >outputs:
> >
> >?25l
> >
> >in the area where you type commands in the terminal. The weird thing
> is
> >that once I type in the terminal, the "?25l" characters there are
> >overwritten.
> >
> >Is that the right syntax for "tsl" and "fsl"? What else am I doing
> wrong?
> >
> >Thanks again.
> >
> >On Sat, Sep 29, 2012 at 9:16 PM, Nicholas Marriott
> ><[1]nicholas.marri...@gmail.com> wrote:
> >
> >  You can control what escape sequences tmux uses to set the title by
> >  changing the tsl and fsl terminfo entries (with tmux
> terminal-overrides
> >  option or a custom terminfo). By default it uses tsl=\e]0; which is
> >  the xterm sequence to change icon name and window title, I suspect
> you
> >  want to change that to tsl=\e]2;
> >
> >  On Thu, Sep 27, 2012 at 06:36:32PM -0400, Alan wrote:
> >  > * *I've been using something like "\e]1;TAB_NAME\a" in my PS1
> >  environment
> >  > * *variable to set my terminal emulator's tab name.
> >  >
> >  > * *I use something like "\e]2;WINDOW_TITLE\a" in my PS1 to set the
> >  terminal
> >  > * *emulator's titlebar name.
> >  >
> >  > * *When I use tmux, I've been using:
> >  >
> >  > * *set-option -g set-titles on
> >  > * *set-option -g set-titles-string "#T [tmux #I: #W]"
> >  >
> >  > * *which works for the terminal emulator's titlebar name, but
> clobbers
> >  the
> >  > * *terminal emulator's tab name, TAB_NAME, to be the same as that
> of
> >  the
> >  > * *titlebar.
> >  >
> >  > * *How can I preserve the tab name I previously specified?
> >  >
> >  > * *Please CC me in your response.
> >  >
> >  > * *Thanks so much!
> >  >
> >  > * *(Note: I've previously been using screen, which doesn't
> clobber the
> >  tab
> >  > * *name when using the 'hardstatus' setting in .screenrc.)
> >
> >  >
> >
>  
> --
> >  > Everyone hates slow websites. So do we.
> >  > Make your web apps faster with AppDynamics
> >  > Download AppDynamics Lite for free today:
> >  > [2]http://ad.doubleclick.net/clk;258768047;13503038;j?
> >  > [3]http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> >
> >  > ___
> >  > tmux-users mailing list
> >  > [4]tmux-users@lists.sourceforge.net
> >  > [5]https://lists.sourceforge.net/lists/listinfo/tmux-users
> >
> > References
> >
> >Visible links
> >1. mailto:nicholas.marri...@gmail.com
> >2. http://ad.doubleclick.net/clk;258768047;13503038;j
> >3. http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> >4. mailto:tmux-users@lists.sourceforge.net
> >5. https://lists.sourceforge.net/lists/listinfo/tmux-users
>
--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Get tmux to respect xterm's tab name

2012-10-01 Thread Alan
On first glance, this works great, it doesn't clobber the icon name and the
window title name is set correctly.

However, now when I ssh into another machine, the icon name (in the
terminal tab) doesn't update to the name of the machine I connected to,
while the window title does.

Anyhow, thanks for your help.

On Mon, Oct 1, 2012 at 3:20 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:

> Try \\007.
>
>
> On Sun, Sep 30, 2012 at 07:42:15PM -0400, Alan wrote:
> >When I do that, I get:
> >
> >computer_name ~ [tmux 0: bash]007
> >
> >in the window title, and also:
> >
> >?25l
> >
> >in the terminal. Any other hints? Or do you think this may be a bug
> with
> >the terminal I'm using?
> >
> >Thanks.
> >
> >On Sun, Sep 30, 2012 at 6:40 PM, Nicholas Marriott
> ><[1]nicholas.marri...@gmail.com> wrote:
> >
> >  Change \a to \007.
> >
> >  On Sun, Sep 30, 2012 at 02:58:54PM -0400, Alan wrote:
> >  > * *Hi Nicholas,
> >  >
> >  > * *Thanks so much for your reply.
> >  >
> >  > * *I'm closer, but still not getting it. Right now, I have in my
> >  > * *~/.tmux.conf:
> >  >
> >  > * *set-option -g set-titles on
> >  > * *set-option -g set-titles-string "#T [tmux #I: #W]"
> >  > * *set-option -g terminal-overrides "*:tsl=\e]2;,*:fsl=\a"
> >  >
> >  > * *But it gives me:
> >  >
> >  > * *computer_name ~ [tmux 0: bash]a
> >  >
> >  > * *in the window title (notice the extra "a" at the end), and
> then it
> >  > * *outputs:
> >  >
> >  > * *?25l
> >  >
> >  > * *in the area where you type commands in the terminal. The weird
> >  thing is
> >  > * *that once I type in the terminal, the "?25l" characters there
> are
> >  > * *overwritten.
> >  >
> >  > * *Is that the right syntax for "tsl" and "fsl"? What else am I
> doing
> >  wrong?
> >  >
> >  > * *Thanks again.
> >  >
> >  > * *On Sat, Sep 29, 2012 at 9:16 PM, Nicholas Marriott
> >  > * *<[1][2]nicholas.marri...@gmail.com> wrote:
> >  >
> >  > * * *You can control what escape sequences tmux uses to set the
> title
> >  by
> >  > * * *changing the tsl and fsl terminfo entries (with tmux
> >  terminal-overrides
> >  > * * *option or a custom terminfo). By default it uses tsl=\e]0;
> which
> >  is
> >  > * * *the xterm sequence to change icon name and window title, I
> >  suspect you
> >  > * * *want to change that to tsl=\e]2;
> >  >
> >  > * * *On Thu, Sep 27, 2012 at 06:36:32PM -0400, Alan wrote:
> >  > * * *> * *I've been using something like "\e]1;TAB_NAME\a" in my
> PS1
> >  > * * *environment
> >  > * * *> * *variable to set my terminal emulator's tab name.
> >  > * * *>
> >  > * * *> * *I use something like "\e]2;WINDOW_TITLE\a" in my PS1 to
> set
> >  the
> >  > * * *terminal
> >  > * * *> * *emulator's titlebar name.
> >  > * * *>
> >  > * * *> * *When I use tmux, I've been using:
> >  > * * *>
> >  > * * *> * *set-option -g set-titles on
> >  > * * *> * *set-option -g set-titles-string "#T [tmux #I: #W]"
> >  > * * *>
> >  > * * *> * *which works for the terminal emulator's titlebar name,
> but
> >  clobbers
> >  > * * *the
> >  > * * *> * *terminal emulator's tab name, TAB_NAME, to be the same
> as
> >  that of
> >  > * * *the
> >  > * * *> * *titlebar.
> >  > * * *>
> >  > * * *> * *How can I preserve the tab name I previously specified?
> >  > * * *>
> >  > * * *> * *Please CC me in your response.
> >  > * * *>
> >  > * * *> * *Thanks so much!
> >  > * * *>
> >  > * * *> * *(Note: I've previously been using screen, which doesn't
> >  clobber the
> >  > * * *tab
> >  > * * *> * *name when using the 'hardstatus' setting in .screenrc.)
> >  >
> &g

mouse copy-mode rectangle-toggle?

2013-04-07 Thread Alan P
In tmux in copy-mode, with the keyboard one can select line oriented 
text using start selection, or can select block oriented text using 
rectangle toggle before start selection.

Using the mouse, I can do line oriented selection. Is there any way to 
do block oriented selection?

Thanks,
Alan.


--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-06-04 Thread Alan Paul
This patch (commit 353d182) broke my vim mousing. I have it turned off 
in vim (mouse=) With this patch, vim now controls my mouse regardless of 
the "mouse=" setting.

When I remove this change, all is back to normal--vim obeys the "mouse=" 
setting, and if off, tmux controls the mouse.

I'm running Ubuntu 12.04, vim 7.3.429.

Alan.


> I don't think we particularly need to document this and definitely no
> options. Cheers
>
>
>  Original message 
> From: Marcel Partap 
> Date: 09/05/2014 21:00 (GMT+00:00)
> To: Nicholas Marriott 
> Cc: tmux-users@lists.sourceforge.net
> Subject: Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages,
> basically.
>
>
>  > Applied, but without the shift part.
> Thx!
> The shift part however is necessary in those cases mentioned where the
> program has broken mouse support..
>  >> Because it gives all CLI programs (even bash history) "intuitive"
> mouse>> support without updating/fixing every single one of them. There are
>  >> numerous CLI tools that do take mouse input, but mess it up somehow,
>  >> f.e. aptitude can not deal with it properly and in ncmpcpp, only
>  >> scrolling up (!) works.
> Also for scrolling the bash history..
> The way I sent the patch in, it works quite nicely. I think a man page
> section and an option to turn off this automatic alt-screen
> wheel-key-sequence translation would be good, too?
> attached is manual section from a previous patch iteration, bake as you
> see fit.
>
>
> #Regards
>
>
> --
> Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
>
>
>
> ___
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users
>


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-06-08 Thread Alan Paul
On 14-06-06 05:26 PM, Balazs Kezes wrote:
> On 2014-06-04 11:03 -0400, Alan Paul wrote:
>> This patch (commit 353d182) broke my vim mousing. I have it turned off
>> in vim (mouse=) With this patch, vim now controls my mouse regardless
>> of the "mouse=" setting.
>
> To clarify, it isn't vim who is controlling the mouse, but rather tmux
> is sending up/down keys to vim when you scroll, right?

Yes.

>
> I guess it would be nice if this behavior would be bound to an option in
> tmux. Until that happens you can try not using the alternate mode for
> vim because only there is tmux doing this. You can either tweak your
> terminfo files for screen and remove the entries for smcup/rmcup or in
> case of vim just add "set t_ti=" and "set t_te=" to your vimrc.

An option would be nice!

While not using vim in the alternate screen works, I prefer keeping vim 
out of my primary screen scrollback.

>
>
> By the way, why are you turning off mousing in vim? Do you see a problem
> using it or do you find it inconvenient for some reason? If yes, why?
>

I've never felt a need for the mouse in vim and thus didn't realize its 
capabilities, but more so, I use the mouse for tmux copy. Using tmux to 
copy/paste between windows is just too useful, even in vim.


Thanks,
Alan


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-06-21 Thread Alan Paul
On 14-06-19 03:19 AM, Nicholas Marriott wrote:
> Did you get a solution to this?
>
> I don't like this feature at all.

My solution was to remove this patch from my local version.

I wasn't able to reproduce the issue so I couldn't get a sense of it. 
I'll assume that it is to improve productivity in their environment, 
which is a reasonable request. However, I would ask that if it stays, it 
needs to be an option as it affected my productivity, also a reasonable 
request.


>
>
> On Mon, Jun 09, 2014 at 02:25:31AM -0400, Alan Paul wrote:
>> On 14-06-06 05:26 PM, Balazs Kezes wrote:
>>> On 2014-06-04 11:03 -0400, Alan Paul wrote:
>>>> This patch (commit 353d182) broke my vim mousing. I have it turned off
>>>> in vim (mouse=) With this patch, vim now controls my mouse regardless
>>>> of the "mouse=" setting.
>>>
>>> To clarify, it isn't vim who is controlling the mouse, but rather tmux
>>> is sending up/down keys to vim when you scroll, right?
>>
>> Yes.
>>
>>>
>>> I guess it would be nice if this behavior would be bound to an option in
>>> tmux. Until that happens you can try not using the alternate mode for
>>> vim because only there is tmux doing this. You can either tweak your
>>> terminfo files for screen and remove the entries for smcup/rmcup or in
>>> case of vim just add "set t_ti=" and "set t_te=" to your vimrc.
>>
>> An option would be nice!
>>
>> While not using vim in the alternate screen works, I prefer keeping vim
>> out of my primary screen scrollback.
>>
>>>
>>>
>>> By the way, why are you turning off mousing in vim? Do you see a problem
>>> using it or do you find it inconvenient for some reason? If yes, why?
>>>
>>
>> I've never felt a need for the mouse in vim and thus didn't realize its
>> capabilities, but more so, I use the mouse for tmux copy. Using tmux to
>> copy/paste between windows is just too useful, even in vim.
>>
>>
>> Thanks,
>> Alan
>>
>>
>> --
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>> http://www.hpccsystems.com
>> ___
>> tmux-users mailing list
>> tmux-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/tmux-users
>
> --
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
>


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-06-25 Thread Alan Paul
On 14-06-21 02:10 PM, Nicholas Marriott wrote:
> So you have mode-mouse set to on?
>
Yes.
>
>
> On Sat, Jun 21, 2014 at 01:46:12PM -0400, Alan Paul wrote:
>> On 14-06-19 03:19 AM, Nicholas Marriott wrote:
>>> Did you get a solution to this?
>>>
>>> I don't like this feature at all.
>>
>> My solution was to remove this patch from my local version.
>>
>> I wasn't able to reproduce the issue so I couldn't get a sense of it. I'll
>> assume that it is to improve productivity in their environment, which is a
>> reasonable request. However, I would ask that if it stays, it needs to be an
>> option as it affected my productivity, also a reasonable request.
>>
>>
>>>
>>>
>>> On Mon, Jun 09, 2014 at 02:25:31AM -0400, Alan Paul wrote:
>>>> On 14-06-06 05:26 PM, Balazs Kezes wrote:
>>>>> On 2014-06-04 11:03 -0400, Alan Paul wrote:
>>>>>> This patch (commit 353d182) broke my vim mousing. I have it turned off
>>>>>> in vim (mouse=) With this patch, vim now controls my mouse regardless
>>>>>> of the "mouse=" setting.
>>>>>
>>>>> To clarify, it isn't vim who is controlling the mouse, but rather tmux
>>>>> is sending up/down keys to vim when you scroll, right?
>>>>
>>>> Yes.
>>>>
>>>>>
>>>>> I guess it would be nice if this behavior would be bound to an option in
>>>>> tmux. Until that happens you can try not using the alternate mode for
>>>>> vim because only there is tmux doing this. You can either tweak your
>>>>> terminfo files for screen and remove the entries for smcup/rmcup or in
>>>>> case of vim just add "set t_ti=" and "set t_te=" to your vimrc.
>>>>
>>>> An option would be nice!
>>>>
>>>> While not using vim in the alternate screen works, I prefer keeping vim
>>>> out of my primary screen scrollback.
>>>>
>>>>>
>>>>>
>>>>> By the way, why are you turning off mousing in vim? Do you see a problem
>>>>> using it or do you find it inconvenient for some reason? If yes, why?
>>>>>
>>>>
>>>> I've never felt a need for the mouse in vim and thus didn't realize its
>>>> capabilities, but more so, I use the mouse for tmux copy. Using tmux to
>>>> copy/paste between windows is just too useful, even in vim.
>>>>
>>>>
>>>> Thanks,
>>>> Alan
>>>>
>>>>
>>>> --
>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>>>> http://www.hpccsystems.com
>>>> ___
>>>> tmux-users mailing list
>>>> tmux-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/tmux-users
>>>
>>> --
>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>>> Find What Matters Most in Your Big Data with HPCC Systems
>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>>> http://p.sf.net/sfu/hpccsystems
>>>
>>
>
> --
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
>


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH 1/2] Enable mouse wheel scrolling in man pages, basically.

2014-06-29 Thread Alan Paul
On 14-06-23 03:34 PM, Balazs Kezes wrote:
> On 2014-06-04 11:03 -0400, Alan Paul wrote:
>> This patch (commit 353d182) broke my vim mousing. I have it turned off
>> in vim (mouse=) With this patch, vim now controls my mouse regardless
>> of the "mouse=" setting.
>
> On a second thought I think that commit contains a bug. It should only
> affect the scrollwheel but leave the buttons as is.
>
> Can you retry with this patch?
>
> Thanks!

Yes. This patch works.


>
>
>
> diff --git a/input-keys.c b/input-keys.c
> index 7531f22..5fb5a32 100644
> --- a/input-keys.c
> +++ b/input-keys.c
> @@ -210,7 +210,8 @@ input_mouse(struct window_pane *wp, struct session *s, 
> struct mouse_event *m)
>* If the alternate screen is active and hasn't enabled the mouse, send
>* up and down key presses for the mouse wheel.
>*/
> - if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) {
> + if ((m->event & MOUSE_EVENT_WHEEL) && wp->saved_grid != NULL &&
> + !(wp->screen->mode & ALL_MOUSE_MODES)) {
>   for (i = 0; i < m->scroll; i++) {
>   if (m->wheel == MOUSE_WHEEL_UP)
>   input_key(wp, KEYC_UP);
>
>


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users