Skip to content

Conversation

@laxsjo
Copy link
Contributor

@laxsjo laxsjo commented Jul 29, 2025

This PR improves the scroll behavior for the LBM REPL and QMl output buffers via two changes:

  1. Once new lines are printed they now only only snap to the bottom when the view was already scrolled to the bottom before. This makes is far easier to read output when connected to a device which prints stuff often.
  2. Changes how the LBM REPL output is trimmed so that the scroll position is maintained how you'd expect. The lack of this feature only became apparent after the first change.

I also added some build instructions in the README.md. I decided to put the change in this PR since I'm lazy, hope you don't mind (if you do I'm happy to separate it out).

I mainly wanted to add instructions for building VESC Tool with Nix, but I ended up also adding instructions for building it normally on Linux. :)

@laxsjo
Copy link
Contributor Author

laxsjo commented Jul 29, 2025

I've been running this for a while now with a device spamming prints continously, and there doesn't seem to be any performance issues on my laptop at least.

laxsjo added 2 commits July 29, 2025 19:19
Improves the LBM REPL and QMl output buffers in two ways:
1. Makes them only snap to the bottom when the view was already scrolled
   to the bottom. This makes is far easier to read output when connected
   to a device which prints stuff often.
2. Changes how the LBM REPL output is trimmed so that maintains the
   scroll position how you'd expect. The lack of this feature only
   became apparent after the first change.
@laxsjo laxsjo force-pushed the feat/nicer-scrolling branch from daa7a3e to cce9994 Compare July 29, 2025 17:19
@laxsjo
Copy link
Contributor Author

laxsjo commented Jul 29, 2025

Updated the build instructions with a note about you needing to install the dependencies. I keept it kind of vague since I don't have a debian-based OS to try it on.

@laxsjo
Copy link
Contributor Author

laxsjo commented Jul 29, 2025

Oh, just realized that #312 already exists which added some build instructions. But it's instructions were also pretty specific.

@vedderb vedderb merged commit f3b8c6f into vedderb:master Jul 30, 2025
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants