RosettaCodeData/Task/Terminal-control-Dimensions/Action-/terminal-control-dimensions.action

17 lines
380 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
PROC Main()
BYTE ROWCRS=$0054 ;Current cursor row
CARD COLCRS=$0055 ;Current cursor column
CARD width
BYTE height
Graphics(0)
Position(0,0) ;go to the top-left corner
Put(28) Put(30) ;go up and left - the bottom-right corner
width=COLCRS+1
height=ROWCRS+1
Position(2,1)
PrintF("Number of colums: %U%E",width)
PrintF("Number of rows: %B%E",height)
RETURN