-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand, increase the output of the shell (strings, memory). #2071
Comments
Isn't it easier to just You could also use tmux and set the number of scrollback lines, as explained here https://stackoverflow.com/a/18777877 |
Surprised by this answer. |
The limit is actually 2000. Support can be added for more.
|
Even standard curl often fails (lacks output). If the shell does not take up a lot of memory, then you need to extend the Termux output as much as possible. |
@xb3b6 Terminal lines are limited since their increase has negative impact on console rendering performance (lags when selecting text or changing font size). For some devices (ROMs) less significant, for some more. It can be increased to 5000 lines, but not more.
|
It should be user configurable with |
Yeah, rendering was also what I was thinking off that may have a negative performance impact. Lot of calls are made for it. But newer devices might be capable enough. |
Increasing scrollback cause lags at least on Lineage OS ROMs. For example, if console filled with thousands lines of output, resizing text become unresponsive and takes effect in 1-2 seconds. Selection works better, though lags are still noticeable. 2000-5000 lines is safe choice. But yes, Termux can have scrollback buffer configurable. |
I see, can experiment and see the impact and put a max limit so users can't go beyond. Who knows if further optimizations can be made to the terminal to increase the overall performance. Lot of code exists now for lot of things which may not be as efficient as it should be. But that's time consuming stuff to look into. |
Terminal rendering performance is actually old issue but since #628 it doesn't take much attention. |
Thanks for this. And yes, that indeed should be looked into at some point. But lot of "dangerous" and unknown code, so should be done with better understanding of it. With 0b4bbaf, I even went to the max limit of |
This `terminal-transcript-rows` key can be used to adjust the terminal transcript rows. The user can set an integer value between `100` and `50000`. The default value is still `2000`. So adding an entry like `terminal-transcript-rows=10000` to `termux.properties` file will allow users to scroll back ~10000 lines of command output. After updating the value, termux must be restarted. You can also run `termux-reload-settings` command so that termux loads the updated value, but only new sessions will use the updated value, existing sessions will not be affected. You can test this with the following, where `70` is number of `x` characters per line and `10001` is the number of lines to print. `x="$(printf 'x%.0s' {1..70})"; for i in {1..10001}; do echo "$i:$x"; done` Be advised that using large values may have a performance impact depending on your device capabilities, so use at your own risk. Closes termux#2071
This `terminal-transcript-rows` key can be used to adjust the terminal transcript rows. The user can set an integer value between `100` and `50000`. The default value is still `2000`. So adding an entry like `terminal-transcript-rows=10000` to `termux.properties` file will allow users to scroll back ~10000 lines of command output. After updating the value, termux must be restarted. You can also run `termux-reload-settings` command so that termux loads the updated value, but only new sessions will use the updated value, existing sessions will not be affected. You can test this with the following, where `70` is number of `x` characters per line and `10001` is the number of lines to print. `x="$(printf 'x%.0s' {1..70})"; for i in {1..10001}; do echo "$i:$x"; done` Be advised that using large values may have a performance impact depending on your device capabilities, so use at your own risk. Closes termux#2071
I use some programs that print 5000 lines to the output, but Termux displays only 2500 lines, truncates the beginning of the output.
It is necessary to increase the output of lines, there is enough power everywhere.
The text was updated successfully, but these errors were encountered: