read-char and Java System.in
I’ve been reading Brian Harvey’s Computer Science Logo Style. So I thought I would try to implement on of his projects in ISLisp to work out some kinks and to use lisp to write a program. I picked the tic tac toe program (although that is here nor there). The problem was that all the programs are console applications and Brian likes to use the readChar functionality which allows for input with needing to press return.
Well Java doesn’t easily allow for that. The Standard Input stream requires a Return before read will return even the first charecter. What am I going to do with that? Well for now the user will have to press enter.