RosettaCodeData/Task/Terminal-control-Dimensions/Phix/terminal-control-dimensions.phix
2016-12-05 23:44:36 +01:00

5 lines
260 B
Text

sequence vc = video_config()
printf(1,"Terminal buffer height is %d\n",vc[VC_LINES])
printf(1,"Terminal buffer width is %d\n",vc[VC_COLUMNS])
printf(1,"Terminal screen height is %d\n",vc[VC_SCRNLINES])
printf(1,"Terminal screen width is %d\n",vc[VC_SCRNCOLS])