RS: XML definition of Terminal layout.
Added global vars for GUI