improved terminal configuration