fixed use of 'do' in xterm_ctl