Determine the height and width of the terminal, and store this information into variables for subsequent use.

include graphics.e
 
sequence vc
integer term_height, term_width
 
vc = video_config()
 
term_height = vc[VC_LINES]
term_width  = vc[VC_COLUMNS]
 
printf(1,"Terminal height is %d\n",term_height)
printf(1,"Terminal width is %d\n",term_width)