Controlling the Terminal from PyScript
The xtermjs which underlies a given PyScript terminal can be accessed directly via the __terminal__
global name, when code is running in a terminal. This can be used to control the properties of the terminal to, say, change the numbers of columns and rows: