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

(playground) read/1 gives end_of_file #58

Open
Jean-Luc-Picard-2021 opened this issue Aug 9, 2022 · 3 comments
Open

(playground) read/1 gives end_of_file #58

Jean-Luc-Picard-2021 opened this issue Aug 9, 2022 · 3 comments
Labels

Comments

@Jean-Luc-Picard-2021
Copy link

I just tried read/1, it gives immediately end_of_file:

ciao_read

@jfmc
Copy link
Member

jfmc commented Aug 9, 2022

Thanks. A known issue and documented in limitations. Stdin and signals (including C-c, timeouts) are not working yet. As you know abort is implemented as a hard reset. We have all the pieces to make it work but we are making sure that we touch the right places and do not break anything.

@jfmc
Copy link
Member

jfmc commented Jul 29, 2023

Reopening since this is still not fixed.

@jfmc
Copy link
Member

jfmc commented May 3, 2024

Reopening, still not fixed. The proposal https://v8.dev/blog/jspi-ot may help here but we'd need to wait until it is commonly available in browsers. Another alternative is to yield from Prolog whenever we are reading/writing from the console (but this is hard from C).

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