define T and None
press Esc to hide terminal