mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 13:11:50 +09:00
rudimentary and perhaps broken LESS impl
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user