support for terminals and for GNU Screen