小编mam*_*nas的帖子

为什么在使用 Alacritty 时将 TERM 设置为 xterm-256color?

所以,我决定尝试一下 Alacritty,在他们的默认配置中有以下评论:

#env:
  # TERM variable
  #
  # This value is used to set the `$TERM` environment variable for
  # each instance of Alacritty. If it is not present, alacritty will
  # check the local terminfo database and use `alacritty` if it is
  # available, otherwise `xterm-256color` is used.
  #TERM: alacritty
Run Code Online (Sandbox Code Playgroud)

我不明白的是:为什么我要xterm-256color在使用 alacritty 时将 TERM 设置为?xterm 不是 Linux 的默认终端模拟器吗?在旧的 OSX 时代,我记得使用 iTerm2,但xterm-256color如果我没记错的话,变量 TERM 被设置为- 当时我从来没有想过为什么会这样。

terminal

8
推荐指数
3
解决办法
5712
查看次数

标签 统计

terminal ×1