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

Unable to interact with a REPL using LocalProcessTerminalView and SwiftUI #288

Closed
nkleemann opened this issue Apr 5, 2023 · 1 comment
Closed

Comments

@nkleemann
Copy link
Contributor

I am using LocalProcessTerminalView in a SwiftUI project to host a GHCI REPL. When I call the .feed method to send input to the REPL, the text is displayed in the terminal view but not entered into the GHCI prompt. Moreover, pressing Enter manually does not result in GHCI acknowledging the input. Sending \r\n adds a new line in the terminal view but does not interact with the GHCI session.

How can I use SwiftTerm to host a REPL and send input to it from SwiftUI?

@nkleemann
Copy link
Contributor Author

Alright, this was a case of finding the error while typing out the issue:

Using send(txt:) instead of feed(txt:) is working. Closing!

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