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

Support suspending with ctrl+z and gracefully resume #239

Open
tobimensch opened this issue Nov 12, 2018 · 5 comments
Open

Support suspending with ctrl+z and gracefully resume #239

tobimensch opened this issue Nov 12, 2018 · 5 comments
Labels
enhancement tty-mode Relates to the terminal TTY client

Comments

@tobimensch
Copy link
Collaborator

tobimensch commented Nov 12, 2018

This shortcut is known from terminal programs like vim, emacs and others (in fact it is almost universally supported). When the user presses ctrl+z, the running program (browsh) disappears and on the terminal it looks as if the program was quit. Since the program was only suspended into the background, it can be resumed at any time by typing fg and enter.

I think this could be useful for browsh users, because they could do some work on the command line, and continue to read the same website later. Of course they could also use something such as tmux or simply multiple terminals, however sometimes you might not have a terminal multiplexer running or installed, or you might indeed prefer not to switch to another terminal, because it fits your workflow best.

@tobimensch
Copy link
Collaborator Author

We've to wait for the tcell project to fix this gdamore/tcell#194 .

@tomrow
Copy link

tomrow commented Dec 14, 2018

I think that the ^Z key combination may not be the best idea for suspension as it may interfere with Undo when typing in textboxes. Maybe try PauseBreak instead?

@tobimensch
Copy link
Collaborator Author

@tomrow
Key combinations will be configurable. :-)

@kgfly
Copy link

kgfly commented Jul 19, 2019

+1, ctrl-z should be the most common key for emacs, vim .....

"jobs" list all background process.

"fg #" resumes specific process.

This is useful if you're under a real/pure terminal instead of GUI terminal.

@kgfly
Copy link

kgfly commented Jul 22, 2019

On Windows, it's little different, since it does not have jobs/fg commands.

c-z to return to batch.
exit to return back to the exe, eg vim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement tty-mode Relates to the terminal TTY client
Projects
None yet
Development

No branches or pull requests

3 participants