-
Notifications
You must be signed in to change notification settings - Fork 732
run as background process, connect to active terminal session #1087
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
Comments
Hi @tcrensink, I assume you are looking for a way to detach the process from the TTY, like tmux, screen and others. The idea is to provide a custom |
@jonathanslenders thank you for the thorough response. You are correct: I'd like to mimic the behavior of tmux/screen for fast attaching/detaching to a running prompt-toolkit process. For clarity: are you suggesting that this could be implemented as it is done in pymux using prompt-toolkit only (and of course required os resources)? Any links in pymux for where the process you describe above happens would be helpful. |
@tcrensink did you find a solution for this? |
@karandwivedi42, I found a hack that works ok. I ran the prompt_toolkit process in a Docker container, then connect/disconnect to the container with keybindings, while leaving the prompt_toolkit process running. The command to conntect/disconnect (and then clear the terminal window) looks something like this:
I renamed the above command |
I want to create an TUI that runs in the background but connects to an active terminal session on command. Is this possible?
I have an app that uses prompt_toolkit, that runs with
python app.py
; after (slow) initial startup it is quite responsive. Is is possible to keep it running in the background and connect to the tty of a terminal session, to avoid the delay of quitting/restarting the process?The text was updated successfully, but these errors were encountered: