News for hackers. Stuff that matters.
Re:Java on Truffle – Going Fully Metacircular by exabrial on Wednesday January 20, 2021 @08:23AM (#25846092)
Question for you, but first I just want to say thanks! The technology is awesome.

That Tetris game is that a command line thing? If so what library are you using to manipulate the console? I've wanted to create interactive command line utilities with the JVM for a long time and it's always been not supported.

Re:Java on Truffle – Going Fully Metacircular by mukel on Wednesday January 20, 2021 @08:50AM (#25846389)
Re:Java on Truffle – Going Fully Metacircular by exabrial on Wednesday January 20, 2021 @08:57AM (#25846470)
Ok what on earth is going on there... It's launching a shell but I'm not sure what the stty does
Re:Java on Truffle – Going Fully Metacircular by shakna on Wednesday January 20, 2021 @09:34AM (#25846858)
The commandline buffers input by default, because it starts in "cooked" mode.

That line turns off buffering so that keypresses can immediately be read, by putting it into "raw" mode.

Re:Java on Truffle – Going Fully Metacircular by exabrial on Wednesday January 20, 2021 @10:49AM (#25847814)
excellent! thank you
Re:Java on Truffle – Going Fully Metacircular by shelajev on Wednesday January 20, 2021 @08:33AM (#25846208)
that's this tetris: https://github.com/kt97679/tetris/blob/master/Tetris.java

ncurses I think. There's an issue with how jconsole and tetris work together, so when tetris exits, jshell does too.