4 ms·
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 usi
by exabrial 6y ago
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.
- shelajev 6y agothat's this tetris: https://github.com/kt97679/tetris/blob/master/Tetris.java 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.
- mukel 6y agoIt's a Linux-only trick: https://github.com/kt97679/tetris/blob/52dfb3a703e4dd5b379902ecbe30b9dfd45fdef1/Tetris.java#L45 https://github.com/kt97679/tetris/blob/52dfb3a703e4dd5b37990...
- exabrial 6y agoOk what on earth is going on there... It's launching a shell but I'm not sure what the stty does