More non-TTY support for display-terminalinfo.py