-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot scroll #35
Comments
I understand the issue now. Abduco is using However, I don't think this is a good choice. Consider this example ls -la
# we are using normal buffer and can scroll
abduco -c some bash
# abduco is using alternate buffer, we cannot see previous outputs
ls -la
# output truncated & scrolling disabled
man man
# man is now also using the alternate buffer, effectively overriding abduco
q
# now we return to abduco session from man
# returning from man disables alternate buffer in abduco as well
# we can no longer see previous output from abduco ...
ls -la
# ... but scrolling now works As demonstrated, every programm that is also using alternative buffer, like |
Are you using xterm or a different terminal? I tried your example with rxvt-unicode (urxvt) v9.22 and both scrolling and the alternate buffer worked correctly. |
@mrksmrtn could you share your urxvt defaults ? |
@malikbenkirane I forgot that I had some custom settings. Probably
Sorry about the slow reply. I've been out of town. |
Scrolling up doesn't work in konsole either. |
Adding to this - it also does not work in |
workaround is to |
The core issue is once again #32. Conceptually it would indeed be cleaner if abduco would solely operate on the I/O level without issuing any terminal escape sequences. Note however, that simply removing the code to enter/leave the alternate screen buffer merely trades one problem for another. If you are running an interactive application in alternate screen mode and then detach it would have to be restored upon reattaching. This really needs some coordination with another utility like dvtm. |
I generally have to do a ^L to get a full screen app (mutt) to repaint after I reattach, so at least an -option- to leave me in the same state I'd get via reattach then tput rmcup might be nice ... though it's really not a major obstacle to me, just it surprised me moving from dtach. |
Update: 'vi, :q' is now my spirit animal and annoys me so little I really don't care either way at this point. goes back to enjoying using the code |
Haven't battle-tested it, but this function seems to pretty much instantly send the function abduco-attach {
(until abduco | grep -q "\*.*${1}"; do sleep 0.01; done && echo "tput rmcup" | abduco -a "${1}" &); abduco -a "${1}"
} |
Where do you put this function? And when do you trigger it? |
Hello. I connect to machines with SSH, but sometimes my connection drops.
I like to resume my work after reconnect without loosing my session.
I don't have need for multiplexing or anything fancy, I just want to resume where I left of.
I found dtach and abduco to be fitting for my purpose.
However there is one big showstopper in abduco:
Whenever I am connected to an abduco session, scrolling appears to be disabled.
In dtach, scrolling keeps working.
Is there a workaround or fix for this?
The text was updated successfully, but these errors were encountered: