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

Buffered cli commands #193

Closed
groggy7 opened this issue Apr 26, 2024 · 1 comment
Closed

Buffered cli commands #193

groggy7 opened this issue Apr 26, 2024 · 1 comment

Comments

@groggy7
Copy link

groggy7 commented Apr 26, 2024

It seems like the cli commands im writing over ptmx are first buffered, then gets executed. Is it possible to not print these at all?

image
@creack
Copy link
Owner

creack commented May 23, 2024

This would have to do with the ioctls of your terminal. The example from the readme provides a show-case on how to set the terminal in raw mode to properly use a shell within a pty.
If you need to manually fine control the line discipline (in this case the ECHO mode), then you can use syscall.Ioctl or a library like golang.org/x/term.

@creack creack closed this as completed May 23, 2024
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

2 participants