mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Shorten error for broken $TERM
This commit is contained in:
parent
be16eeef69
commit
abc1a45ea1
1 changed files with 2 additions and 7 deletions
|
@ -618,15 +618,10 @@ fn init_curses(vars: &EnvStack) {
|
|||
let term = vars.get_unless_empty(L!("TERM")).map(|v| v.as_string());
|
||||
// We do not warn for xterm-256color at all, we know that one.
|
||||
if term != Some("xterm-256color".into()) {
|
||||
FLOG!(warning, wgettext!("Could not set up terminal."));
|
||||
if let Some(term) = term {
|
||||
FLOG!(warning, wgettext!("TERM environment variable set to"), term);
|
||||
FLOG!(
|
||||
warning,
|
||||
wgettext!("Check that this terminal type is supported on this system.")
|
||||
);
|
||||
FLOG!(warning, wgettext_fmt!("Could not set up terminal for $TERM '%ls'", term));
|
||||
} else {
|
||||
FLOG!(warning, wgettext!("TERM environment variable not set."));
|
||||
FLOG!(warning, wgettext!("Could not set up terminal because $TERM is unset."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue