improved terminal mode