Weird character zsh in emacs terminal

后端 未结 3 1107
日久生厌
日久生厌 2020-12-23 16:54

When using the terminal in emacs (M-x term) under MacOS for some reason it always posts the characters 4m before every line in zsh and always prints 2 lines containing the u

3条回答
  •  暖寄归人
    2020-12-23 17:47

    I needed to set the following environment variables in my ~/.zshrc

    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    export TERM=xterm-256color
    

提交回复
热议问题