[GH-ISSUE #128] when I am using tmux for splitting the terminal, dust output is weird #51

Closed
opened 2026-06-08 11:25:27 +03:00 by zhus · 2 comments
Owner

Originally created by @monacv on GitHub (Dec 31, 2020).
Original GitHub issue: https://github.com/bootandy/dust/issues/128

could you please suggest a fix for $ dust . to have results proportial to size of splitted window in tmux?

Screenshot from 2020-12-31 15-03-13

Originally created by @monacv on GitHub (Dec 31, 2020). Original GitHub issue: https://github.com/bootandy/dust/issues/128 could you please suggest a fix for $ dust . to have results proportial to size of splitted window in tmux? ![Screenshot from 2020-12-31 15-03-13](https://user-images.githubusercontent.com/76495162/103424331-86d27e80-4b79-11eb-834f-8be78d5fec9f.png)
zhus closed this issue 2026-06-08 11:25:27 +03:00
Author
Owner

@bootandy commented on GitHub (Jan 15, 2021):

I didn't know about this, I'll play with tmux and see if I can figure out what is going on

<!-- gh-comment-id:761167842 --> @bootandy commented on GitHub (Jan 15, 2021): I didn't know about this, I'll play with tmux and see if I can figure out what is going on
Author
Owner

@bootandy commented on GitHub (Jan 16, 2021):

I tried splitting the screen on tmux and dust works correctly on my box.

I'm guessing that dust isn't able to get your screen width.

What happens if you run a simple rust program like this to get the width of your screen? Is the number incorrect?


use terminal_size::{terminal_size, Height, Width};

fn get_width_of_terminal()  {
    if let Some((Width(w), Height(_h))) = terminal_size() {
      println!("{:?}", w);
    }
 }
    

<!-- gh-comment-id:761248027 --> @bootandy commented on GitHub (Jan 16, 2021): I tried splitting the screen on tmux and dust works correctly on my box. I'm guessing that dust isn't able to get your screen width. What happens if you run a simple rust program like this to get the width of your screen? Is the number incorrect? ``` use terminal_size::{terminal_size, Height, Width}; fn get_width_of_terminal() { if let Some((Width(w), Height(_h))) = terminal_size() { println!("{:?}", w); } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#51