rudimentary and perhaps broken LESS impl

This commit is contained in:
minjaesong
2020-11-13 14:51:51 +09:00
parent d0f46b89d7
commit 3a26e3dde7
5 changed files with 103 additions and 0 deletions

View File

@@ -41,6 +41,11 @@ class VMJSR223Delegate(val vm: VM) {
}
fun println() = print('\n')
/**
* @return key being hit, of which:
* a-zA-Z1-9: corresponding ASCII code
* ^A-^Z: 1 through 26
*/
fun readKey(): Int {
val inputStream = vm.getInputStream()
var key: Int = inputStream.read()