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

what's the principle of this project? #34

Closed
axeprpr opened this issue Dec 12, 2023 · 2 comments
Closed

what's the principle of this project? #34

axeprpr opened this issue Dec 12, 2023 · 2 comments
Assignees
Labels

Comments

@axeprpr
Copy link

axeprpr commented Dec 12, 2023

I'm sorry, I'm not very familiar with the mechanisms of expect in windows. I noticed that almost all expect Go code fails to work on Windows due to pty. Why does this project work? Is Lua required for it? If so, can this project run on Linux?

@hymkor hymkor self-assigned this Dec 12, 2023
@hymkor
Copy link
Owner

hymkor commented Dec 12, 2023

Thank you for your insightful question.

Expect.Lua does not use pseudo terminals.

Expect.Lua monitors the text output by the child process by periodically directly reading the line where the cursor is and the line before it on the terminal screen using the Windows API ( ReadConsoleOutputW ).

Therefore, Lua is not needed for that purpose.
Also, this program does not work on Linux.

@hymkor hymkor assigned axeprpr and unassigned hymkor Dec 12, 2023
@axeprpr
Copy link
Author

axeprpr commented Dec 13, 2023

I understand it now. Thank you very much!

@axeprpr axeprpr closed this as completed Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants