Weird character zsh in emacs terminal

后端 未结 3 1105
日久生厌
日久生厌 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:33

    You don't have eterm-color terminfo. First, you try to add following S-exp in your configuration file and evaluate.

    ;; Use Emacs terminfo, not system terminfo
    (setq system-uses-terminfo nil)
    

    If problem is not resolved previous setting, you should create eterm-color terminfo by using following command. (terminfo path may different from your system)

    # If you use Cocoa Emacs or Carbon Emacs
    tic -o ~/.terminfo /Applications/Emacs.app/Contents/Resources/etc/e/eterm-color.ti
    

提交回复
热议问题