[GH-ISSUE #154] Cannot scroll through output #67

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

Originally created by @himat on GitHub (Jun 25, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/154

I'm on macos iterm2 zsh (+ ohmyzsh).
When I run dust, the output is printed out but I'm unable to scroll back up to see the full output. I can only see the last part of the dust output.

Ex:

❯ dust
 2.3M             ┌── setuptools        │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓█ │   2%
 3.3M             │     ┌── _openssl.so │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │   3%
 3.4M             │   ┌─┴ bindings      │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │   3%
 4.6M             │ ┌─┴ hazmat          │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │   5%
 5.0M             ├─┴ cryptography      │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓███ │   5%
 8.0M             │ ┌── _vendor         │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓████ │   8%
 9.6M             ├─┴ pip               │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓████ │   9%
  24M           ┌─┴ site-packages       │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │  24%
  24M         ┌─┴ python2.7             │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │  24%
  24M       ┌─┴ lib                     │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │  24%
  24M     ┌─┴ env                       │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │  24%
 2.3M     │           ┌── setuptools    │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │   2%
 4.0M     │           ├── docutils      │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   4%
 7.9M     │           │ ┌── _vendor     │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████ │   8%
 9.6M     │           ├─┴ pip           │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████ │   9%
  10M     │           ├── boto          │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████ │  11%
 1.7M     │           │     ┌── packages│░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │   2%
 2.3M     │           │   ┌─┴ requests  │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │   2%
 2.4M     │           │ ┌─┴ vendored    │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │   2%
 3.3M     │           │ │ ┌── cloudfront│░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   3%
 6.6M     │           │ │ ├── ec2       │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ │   6%
  35M     │           │ ├─┴ data        │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███████████████ │  35%
  40M     │           ├─┴ botocore      │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████████████████ │  39%
  73M     │         ┌─┴ site-packages   │░░░░░░░░░░▓██████████████████████████████ │  71%
  73M     │       ┌─┴ python2.7         │░░░░░░░░░░▓██████████████████████████████ │  72%
  73M     │     ┌─┴ lib                 │░░░░░░░░░░▓██████████████████████████████ │  72%
  75M     │   ┌─┴ aws                   │░░░░░░░░░░███████████████████████████████ │  73%
  75M     │ ┌─┴ .venvs                  │░░░░░░░░░░███████████████████████████████ │  73%
  75M     ├─┴ configs                   │░░░░░░░░░░███████████████████████████████ │  74%
 102M   ┌─┴ algo-master                 │█████████████████████████████████████████ │ 100%
 102M ┌─┴ .                             │█████████████████████████████████████████ │ 100%

I assume this is some issue with my terminal setup + how dust outputs text to the terminal.
What other info can I give to help debug this?

Originally created by @himat on GitHub (Jun 25, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/154 I'm on macos iterm2 zsh (+ ohmyzsh). When I run `dust`, the output is printed out but I'm unable to scroll back up to see the full output. I can only see the last part of the dust output. Ex: ``` ❯ dust 2.3M ┌── setuptools │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓█ │ 2% 3.3M │ ┌── _openssl.so │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │ 3% 3.4M │ ┌─┴ bindings │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │ 3% 4.6M │ ┌─┴ hazmat │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓██ │ 5% 5.0M ├─┴ cryptography │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓███ │ 5% 8.0M │ ┌── _vendor │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓████ │ 8% 9.6M ├─┴ pip │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓████ │ 9% 24M ┌─┴ site-packages │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │ 24% 24M ┌─┴ python2.7 │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │ 24% 24M ┌─┴ lib │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │ 24% 24M ┌─┴ env │░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████████ │ 24% 2.3M │ ┌── setuptools │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │ 2% 4.0M │ ├── docutils │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │ 4% 7.9M │ │ ┌── _vendor │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████ │ 8% 9.6M │ ├─┴ pip │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████ │ 9% 10M │ ├── boto │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████ │ 11% 1.7M │ │ ┌── packages│░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │ 2% 2.3M │ │ ┌─┴ requests │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │ 2% 2.4M │ │ ┌─┴ vendored │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█ │ 2% 3.3M │ │ │ ┌── cloudfront│░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │ 3% 6.6M │ │ │ ├── ec2 │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ │ 6% 35M │ │ ├─┴ data │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███████████████ │ 35% 40M │ ├─┴ botocore │░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████████████████ │ 39% 73M │ ┌─┴ site-packages │░░░░░░░░░░▓██████████████████████████████ │ 71% 73M │ ┌─┴ python2.7 │░░░░░░░░░░▓██████████████████████████████ │ 72% 73M │ ┌─┴ lib │░░░░░░░░░░▓██████████████████████████████ │ 72% 75M │ ┌─┴ aws │░░░░░░░░░░███████████████████████████████ │ 73% 75M │ ┌─┴ .venvs │░░░░░░░░░░███████████████████████████████ │ 73% 75M ├─┴ configs │░░░░░░░░░░███████████████████████████████ │ 74% 102M ┌─┴ algo-master │█████████████████████████████████████████ │ 100% 102M ┌─┴ . │█████████████████████████████████████████ │ 100% ``` I assume this is some issue with my terminal setup + how dust outputs text to the terminal. What other info can I give to help debug this?
zhus closed this issue 2026-06-08 11:25:32 +03:00
Author
Owner

@bootandy commented on GitHub (Jun 28, 2021):

Just pointing out the obvious here: dust will only generate a terminal height's worth of data. -> Does it do 'what you expect' if you run with 'dust -n 200' or 'dust -d 4' ?

<!-- gh-comment-id:869419151 --> @bootandy commented on GitHub (Jun 28, 2021): Just pointing out the obvious here: dust will only generate a terminal height's worth of data. -> Does it do 'what you expect' if you run with 'dust -n 200' or 'dust -d 4' ?
Author
Owner

@himat commented on GitHub (Jun 28, 2021):

Ah okay, I thought it actually printed out the entire tree, but only showed the last part of the tree on the screen.
But I guess it shows the largest dirs/files first all the time anyway which is the most important part, so I guess there's no problem, and I can use the -n/-d options if I want to print more. Thanks!

<!-- gh-comment-id:869865553 --> @himat commented on GitHub (Jun 28, 2021): Ah okay, I thought it actually printed out the entire tree, but only showed the last part of the tree on the screen. But I guess it shows the largest dirs/files first all the time anyway which is the most important part, so I guess there's no problem, and I can use the -n/-d options if I want to print more. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#67