RosettaCodeData/Task/Terminal-control-Dimensions/Wren/terminal-control-dimensions-1.wren
2024-03-06 22:25:12 -08:00

12 lines
287 B
Text

/* Terminal_control_Dimensions.wren */
class C {
foreign static terminalWidth
foreign static terminalHeight
}
var w = C.terminalWidth
var h = C.terminalHeight
System.print("The dimensions of the terminal are:")
System.print(" Width = %(w)")
System.print(" Height = %(h)")