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

Correction on ^C/^Z #123

Open
Eviepayne opened this issue Apr 5, 2021 · 0 comments
Open

Correction on ^C/^Z #123

Eviepayne opened this issue Apr 5, 2021 · 0 comments

Comments

@Eviepayne
Copy link

After attaching, the process will take input from and write output to the new terminal, including ^C and ^Z. (Unfortunately, if you background it, you will still have to run "bg" or "fg" in the old terminal. This is likely impossible to fix in a reasonable way without patching your shell.)

While backgrounded you can open your terminal multiplexor (like tmux or screen)
reptyr $PID
detach from the session, then while it is backgrounded.
jobs
Get the name of the $0 argument (usually sudo or the binary name)
disown $binaryname
Which will detach the process from your existing terminal, leaving the terminal multiplexor session independant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant