-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
runs into error in docker environment Error reading output: read /dev/ptmx: input/output error #184
Comments
This sounds outside the scope of the library. If it works on your machine but not in Docker it is likely a configuration issue in Docker, probably around the TTY allocation. If the TTY isn't properly allocated, /dev/ptmx may not be present, or wouldn't behave as expected. Did you try something like https://github.com/gfx/example-github-actions-with-tty? When you say you want to capture the original color, I am not sure to understand though. Looking at util.go, it seems like you try to strip away the ansi escape sequences? The PTY has little to do with colors, it is more a terminal emulator thing. Programs usually check whether or not they run inside a tty to know whether or not to output escape sequences, but most of those, like colors, are interpreted by the terminal emulator, not the pty. |
at least your library is very close to my target. not sure why it does not work in git github workflow. |
In fact no one library works by now. I tried all the libraries chat-gpt suggested. none of them work. I know very little about this area. it's something like to cheat 'OS'( my guess) it's a terminal then I can get the color(data) then print it again on the screen. |
docker/cli#2067 |
owenthereal/upterm#11 this work for me. |
in order to captue the original output color, I used this library. it works well on my local environment(mac os). but it runs into error in the docker environment
here is the link https://github.com/kcmvp/archunit/actions/runs/7511175563/job/20450454708
here is the code using this library.
https://github.com/kcmvp/gob/blob/main/cmd/shared/util.go
am I using wrong way of this library or it's an environment issue? If it's a environment issue, are there any walk around?
thank you very much!
The text was updated successfully, but these errors were encountered: