Interacting with System.in

I'm looking into using CheerpJ to put together a website to showcase student projects in my intro programming class. I've been testing with projects from past semesters. Many are using swing and are working well, but some students' projects have user interaction in the terminal (REPL style). When I run non-gui applications I see stdout in the browser console which is a good start, but I'm not sure how to interact with stdin.
2 Replies
apignotti
apignotti2mo ago
Hi, thanks for getting in touch. CheerpJ does not provide built-in support for stdin at this time. The community as proposed a few workarounds over time, this is one: https://discord.com/channels/988743885121548329/1019174150193041450/1280192055204773949
TimBarron
TimBarronOP2mo ago
Okay, thanks for pointing out the workaround. I think we could get that to work. The main drawback is the need to modify the students' code slightly, but it's doable.

Did you find this page helpful?