Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #60980

Re: tmux cannot handle high resolution momitors

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups alt.os.linux
Subject Re: tmux cannot handle high resolution momitors
Date 2019-11-14 08:17 +0100
Organization Decebal Computing
Message-ID <87y2wjkjuf.fsf@munus.decebal.nl> (permalink)
References <8736ermqji.fsf@munus.decebal.nl> <5dccbba0$0$547$65785112@news.neostrada.pl>

Show all headers | View raw


marrgol <marrgol@address.invalid> writes:

> On 2019-11-13 at 22:09, Cecil Westerhof wrote:
>> It seems that tmux has problem with high resolution monitors. I have
>> the following script:
>>     #!/usr/bin/env bash
>> 
>>     # An error should terminate the script
>>     set -o errexit
>>     set -o nounset
>> 
>> 
>>     tmux new-session  -d
>>     tmux split-window -h -l 60
>>     tmux split-window -h -l 60
>>     tmux set          pane-border-status       bottom
>>     tmux a
>> 
>> With a full-screen xfce4-terminal I get:
>>     1 windows (created Wed Nov 13 16:22:41 2019) [272x67] (attached)
>> 
>>     1: [83x66] [history 0/2000, 0 bytes] %163
>>     2: [65x66] [history 0/2000, 0 bytes] %164
>>     3: [122x66] [history 0/2000, 0 bytes] %165 (active)
>> 
>> With 'half' a window the results are even more strange:
>>     1 windows (created Wed Nov 13 21:19:14 2019) [135x67] (attached)
>> 
>>     1: [38x66] [history 0/2000, 0 bytes] %219
>>     2: [19x66] [history 0/2000, 0 bytes] %220
>>     3: [76x66] [history 0/2000, 0 bytes] %221 (active)
>> 
>> Is this a bug, or do I use tmux in the wrong way?
>
> Maybe it is a bug but you seem to be doing it wrong anyway. ;-)
> New panes are split off the active one and made current active by
> default, so in your script you first split a 60-column pane from
> the whole screen and then you try to split the second 60-column pane
> off the previously created 60-column pane -- probably not what you
> intended.  Try adding '-d' option to the 'split-window' commands
> to keep the initial pane active.

I added the -d to the split-window commands, but that does not make
things better. In full-screen the panes become:
    1: [65x66] [history 0/2000, 0 bytes] %225 (active)
    2: [81x66] [history 0/2000, 0 bytes] %227
    3: [124x66] [history 0/2000, 0 bytes] %226

and in 'half' screen:
    1: [20x66] [history 0/2000, 0 bytes] %228 (active)
    2: [35x66] [history 0/2000, 0 bytes] %230
    3: [78x66] [history 0/2000, 0 bytes] %229

So in both cases worse.


Then I realised that in the 'half' screen there where not enough
columns. So I hanged it to:
    tmux new-session  -d
    tmux split-window -d -h -l 60
    tmux set          pane-border-status       bottom
    tmux a

The 'half' screen then becomes:
    1: [47x66] [history 0/2000, 0 bytes] %231 (active)
    2: [87x66] [history 0/2000, 0 bytes] %232

and the full-screen:
    1: [115x66] [history 0/2000, 0 bytes] %233 (active)
    2: [156x66] [history 0/2000, 0 bytes] %234

So it keeps being strange.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

tmux cannot handle high resolution momitors Cecil Westerhof <Cecil@decebal.nl> - 2019-11-13 22:09 +0100
  Re: tmux cannot handle high resolution momitors marrgol <marrgol@address.invalid> - 2019-11-14 03:27 +0100
    Re: tmux cannot handle high resolution momitors Cecil Westerhof <Cecil@decebal.nl> - 2019-11-14 08:17 +0100
      Re: tmux cannot handle high resolution momitors marrgol <marrgol@address.invalid> - 2019-11-14 14:50 +0100
        Re: tmux cannot handle high resolution momitors Cecil Westerhof <Cecil@decebal.nl> - 2019-11-14 15:24 +0100

csiph-web