September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1,13 @@
|
|||
// version 1.1.2
|
||||
|
||||
/*
|
||||
I needed to execute the terminal command: 'export COLUMNS LINES'
|
||||
before running this program for it to work (returned 'null' sizes otherwise).
|
||||
*/
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val lines = System.getenv("LINES")
|
||||
val columns = System.getenv("COLUMNS")
|
||||
println("Lines = $lines")
|
||||
println("Columns = $columns")
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
h,w:=System.popen("stty size","r").readln().split();
|
||||
println(w," x ",h);
|
||||
Loading…
Add table
Add a link
Reference in a new issue