mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +09:00
minor fixups
This commit is contained in:
@@ -2,12 +2,6 @@ con.clear();
|
||||
con.move(1,1);
|
||||
for (let i = 0; i < 1024; i++) {
|
||||
if (i < 512) con.color_pair(239, 0); else con.color_pair(0, 239);
|
||||
|
||||
let cx = (i%80)+1;
|
||||
let cy = ((i/80)|0)+1;
|
||||
//serial.printerr(cx+","+cy);
|
||||
con.move(cy,cx);
|
||||
con.addch(i%256);
|
||||
}
|
||||
|
||||
println();
|
||||
@@ -40,10 +40,12 @@ class VMJSR223Delegate(val vm: VM) {
|
||||
|
||||
fun print(s: Any) {
|
||||
//System.out.print("[Nashorn] $s")
|
||||
//System.out.print(s)
|
||||
vm.getPrintStream().write("$s".toByteArray(VM.CHARSET))
|
||||
}
|
||||
fun println(s: Any = "") {
|
||||
System.out.println("[Graal] $s")
|
||||
//System.out.println(s)
|
||||
vm.getPrintStream().write(("$s\n").toByteArray(VM.CHARSET))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user