-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Implement -t flag from docker run (pseudo-terminal support) #64
Comments
Hey @thenonameguy, I was looking for something like this. I will give it a try. |
Are you planning a similar approach? creack/pty#169 EDIT: some1 already wrapped it in Go: https://github.com/UserExistsError/conpty |
As a workaround, you can use processes:
tailwind:
command: socat - EXEC:'tailwindcss --watch',pty,setsid,ctty It will create a fake tty for the process (in this case tailwind). You can also use processes:
tailwind:
command: unbuffer tailwindcss --watch |
I quite like the So process-compose could alter the exec command if a |
Initial (no windows or I will keep it open to gather some feedback. |
@F1bonacc1 my usecase is ability to work with python pdb shell, for example process
|
Feature Request
Certain processes check if they are running within a terminal (bound std* streams, TERM env var, etc.)
A request came up on the devenv Discord to have a similar functionality to docker-compose, which simulates TTYs by default.
Use Case:
Running
tailwindcss --watch
via process-compose should not exit (as the underlyingesbuild
process checks for a pseudo-TTY).Proposed Change:
tty: true|false
(default: false)Who Benefits From The Change(s)?
@jcf
Potentially could allow supplying stdin input in the TUI to interactive processes (shells).
Alternative Approaches
The text was updated successfully, but these errors were encountered: