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

an issue with winpty. it is missing first argument - workaround #25

Open
shimondoodkin opened this issue Dec 9, 2023 · 0 comments
Open

Comments

@shimondoodkin
Copy link
Contributor

when running a program it skips the first parameter, as a solution I pass the command as an array with first augment that is an empty string.

like:

[ cmd,"","arg1" ]

So, the code could be like:

cmd=shlex.split("text.exe arg1", posix=False)
cmd.insert(1,"")
terminal_io = TerminalWinptyIO(
                terminal.row_len,
                terminal.col_len,
                cmd
            )
terminal_io.spawn()
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