Skip to content
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

Unable to pause autoscrolling #1242

Open
qidizi opened this issue Sep 9, 2019 · 23 comments
Open

Unable to pause autoscrolling #1242

qidizi opened this issue Sep 9, 2019 · 23 comments

Comments

@qidizi
Copy link

qidizi commented Sep 9, 2019

Feature description
something will cost a long time,
sometime i want to find out what it say,
but i can not .
either press ctrl+c to break working for read,
or wait for work is finish,but may be some output is loss.

Reference implementation
mac osx terminal
when you scrollup,autoscroll will stoping,
when scrollend it will keeping scrolling.

@AbdullahM0hamed
Copy link

Until something is done about this, you can pipe output to less as a temporary solution. Output isn't lost, and you can follow along at your own pace.

@fornwall fornwall changed the title pause the autoscroll Unable to pause autoscrolling Nov 3, 2019
@ZimbiX
Copy link

ZimbiX commented Dec 5, 2019

Very annoying indeed. I'd have thought there'd be a setting for this, but I can't find one.

That less idea is interesting, but I imagine I'd still often come across situations where it's not until I've already commenced a long command with output (without less) that I realise I need to see some scrollback.

I don't imagine this would be difficult to implement, but I could be wrong.

@ZimbiX
Copy link

ZimbiX commented Dec 5, 2019

Ah, I see this is a duplicate of #684 where it's suggested to use tmux. I guess it's about time I learn how to use that

@buffermet
Copy link

It's about time termux has this basic functionality.

@SDRausty

This comment was marked as spam.

@buffermet
Copy link

@SDRausty can you please elaborate? AFAIK emacs is an alternative to Vim.

@ZimbiX less breaks most escaped output, even when -r or -R flags are set.

I know Android has the most painful excuse for word-wrapping. They call it breakStrategy and its accepted values make absolutely no sense (balanced, high_quality, simple). Web developers know you either want break-none, break-word or break-all.

Since termux does behave as "break-all", it means they probably devised their own grid system, which means it should be easy enough to lock onto a certain row. Not sure why it's taking so long to implement this because having to inspect streaming output whilst fighting against the automatic scrolling is disturbing to say the least.

so tmux it is...

@SDRausty

This comment was marked as spam.

@qidizi
Copy link
Author

qidizi commented Jan 8, 2020

AFAIK emacs is

search string: run command in emacs

I have not done this in quite some time: This was... Compiling the Linux kernel on i386, including more recent processors, the box, keyboard and the 3d box screen. The screen resembled a portable TV btw. Kinescope screen time and the small screen buffer were issues. 40 lines of screen, then the screen output is gone. Emacs performs well...

alt search string: run command in vim

@qidizi are you familiar with this topic at tldp.org?

search string: redirect output bash site:tldp.org

The ability to pause autoscrolling, including searching autoscrolling is available through tools such as emacs, redirecting output (a native shell ability), vim, stream editors, etc...

How would a user access a native ability to pause autoscrolling in Termux? A Termux meta key in the extra keys row? A meta key popup like: long screen press > More... > Help which shows our help page?

Once autoscrolling is paused, will the user be able to manually scroll the screen as desired until manually unpausing autoscrolling?

ping 127.0.0.1
output overflow and autoscrolling

when swipe up n pixel paused
when swipe down to last line keep autoscrolling.

@SDRausty

This comment was marked as spam.

@qidizi
Copy link
Author

qidizi commented Jul 30, 2020

@qidizi is long tap until the context menu shows when the screen is scrolling what you are looking for? When the menu shows up, the scrolling pauses.

Yes, it will pause. But it's not a friendly operation. For example, if I want to copy another line, I have to click on the screen to cancel the menu, but it's scrolling out of the visible area. The ping operation only adds 1 line per second, and maybe you can easily hold down the line you want, what if it's a cat log? Maybe you'll terminate the operation and use grep, so what if the add-on line is extremely fast and can't be used multiple times? So I think it's very friendly to roll up n px like the terminal of mac and pull down to the end line and resume scrolling.

@eda-abec
Copy link

eda-abec commented Apr 3, 2021

There is a function for this in most terminals. I found that you can also enable it in Termux like this:

stty ixon (you will probably want to place this to some init script)

and then, to pause:
ctrl-S

and to resume
ctrl-Q

Just tried it with the ping command. And its clean, no workaround. :)

Refernece: https://unix.stackexchange.com/a/12108

@buffermet
Copy link

buffermet commented Apr 3, 2021

Pausing the terminal is not the same. If there is a large output stream, resuming output will make you lose your scroll position and you will have to scroll all the way up to continue reading.

This is an essential feature that should have been implemented years ago 🤷‍♂️ workarounds it is.

Edit: I don't know a single terminal besides termux that doesn't behave this way (retain scroll position if not at the bottom).

@eda-abec
Copy link

eda-abec commented Apr 3, 2021

I really agree with you and it annoys me, too. I just thought I could share this way in case it suits someones needs. And its deeply integrated, as I said. 😃

@SDRausty

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@SDRausty

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@SDRausty

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@SDRausty

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@SDRausty

This comment was marked as off-topic.

@ghost

This comment was marked as off-topic.

@ghost ghost locked as off-topic and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants