fix non-x terminal