Job management (CTRL+Z, fg) borks the display #48
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#48
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In Bombadillo, if the application is suspended using CTRL+Z and then brought back using the
fg
command, a few weird things happen:It's possible to eventually get back to normal by loading a new page (like a bookmark) twice.
I would guess that backgrounding it puts the terminal into a different mode and then does not return it to its previous mode afterward. I would very much like this to work. I winder if ctrl+z sends a signal to the running process? If it does, I can likely intercept it somehow and handle the change. Otherwise, I'm not sure how to do so, except to just set the terminal mode over and over again for each draw? But that seems like a really wrong solution.
I have looked into this a bit. The signal package seems to let us catch this. I could not find a good example of how to do so, but have a vague idea. If we spin off a go routine that is set to signal.Notify for the signals we want, we may be able to handle this.
The two signals in question seem to be
SIGTSTOP
andSIGCONT
. At least as best as I have been able to decipher.I definitely think this would be nice to have. If anybody sees this issue and wants to work on it (yourself included @asdf) it would be appreciated. Otherwise I'll try to get to it, but there are a few other things I'd like to get to first.
Closed by #53