ansi-term

eterm-color: Unknown terminal type

☆樱花仙子☆ 提交于 2020-01-10 10:46:30
问题 In an ansi-term terminal in Emacs, when I ssh to a specific remote host, the terminal is not recognized properly, and I get the error: 'eterm-color': unknown terminal type. I added export TERMINFO=~/.terminfo to .bashrc on the remote machine, and I have tried the following on the remote machine: cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo Just in case, I also tried copying over my own local copy of /etc/e (Emacs 24.3) to ~/.terminfo on the remote machine. Also, in case it matters, if I try

eterm-color: Unknown terminal type

女生的网名这么多〃 提交于 2020-01-10 10:46:11
问题 In an ansi-term terminal in Emacs, when I ssh to a specific remote host, the terminal is not recognized properly, and I get the error: 'eterm-color': unknown terminal type. I added export TERMINFO=~/.terminfo to .bashrc on the remote machine, and I have tried the following on the remote machine: cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo Just in case, I also tried copying over my own local copy of /etc/e (Emacs 24.3) to ~/.terminfo on the remote machine. Also, in case it matters, if I try

Send EOF (^D) to emacs ansi-term

会有一股神秘感。 提交于 2019-12-23 04:34:37
问题 When I use ansi-term mode in Emacs, and run a program such as cat , ^D does not end the input like it normally does. If fact, it doesn't seem to do anything at all. ^C still works. I have Evil installed 回答1: Try adding these to your config (after you load evil): (delete 'term-mode evil-insert-state-modes) (add-to-list 'evil-emacs-state-modes 'term-mode) On my emacs with this modification, cat followed by ^D in ansi-term char-mode ends the input and bring me back to the prompt. Make sure you

Send EOF (^D) to emacs ansi-term

巧了我就是萌 提交于 2019-12-23 04:34:17
问题 When I use ansi-term mode in Emacs, and run a program such as cat , ^D does not end the input like it normally does. If fact, it doesn't seem to do anything at all. ^C still works. I have Evil installed 回答1: Try adding these to your config (after you load evil): (delete 'term-mode evil-insert-state-modes) (add-to-list 'evil-emacs-state-modes 'term-mode) On my emacs with this modification, cat followed by ^D in ansi-term char-mode ends the input and bring me back to the prompt. Make sure you

what are the valid colors for mercurial's color extension?

China☆狼群 提交于 2019-12-12 10:56:38
问题 Mercurial's color extension is great and all, but there isn't a list on that page of what the valid colors are. I looked for a python file named color, hoping I'd be able to read the source and see it there, but no luck. I was hoping to use grey or light grey for a color but it wasn't valid. Grey (or gray) seems like a pretty likely color to be in a list of colors. Where can I find a list of valid colors for the color extension? Or where can I find the source for the color extension? 回答1: You

Emacs: Default binary to run with M-x ansi-term

吃可爱长大的小学妹 提交于 2019-12-12 08:24:44
问题 Is there a way to have Emacs to prompt by default for a binary of my choice when running M-x ansi-term . It always asks me for /bin/zsh but I have a new installation of zsh in a different path. Alternatively, it would be great to have Emacs to just run the binary I want when I type M-x my-ansi-term 回答1: There are a number of ways to specify the default shell: Set the variable explicit-shell-file-name . For example, in your .emacs : (setq explicit-shell-file-name "/bin/zsh") Set the

Emacs: Default binary to run with M-x ansi-term

不羁的心 提交于 2019-12-04 01:45:12
Is there a way to have Emacs to prompt by default for a binary of my choice when running M-x ansi-term . It always asks me for /bin/zsh but I have a new installation of zsh in a different path. Alternatively, it would be great to have Emacs to just run the binary I want when I type M-x my-ansi-term There are a number of ways to specify the default shell: Set the variable explicit-shell-file-name . For example, in your .emacs : (setq explicit-shell-file-name "/bin/zsh") Set the environment variable ESHELL Set the environment variable SHELL phils Alternatively, it would be great to have Emacs to

Shell prompt repeating when using ssh in ansi-term

若如初见. 提交于 2019-11-30 21:04:17
When I use SSH to login to a Ubuntu 12.04 machine from an ansi-term session in emacs the prompt displays incorrectly: 0;ubuntu@jumplin: ~ubuntu@jumplin:~$ This should look like the following: ubuntu@jumplin:~$ I've tried a few of the suggestions in relation to utf-8 and colour support however they don't seem to be working (colour currently works fine in ansi-term): Strange characters in ansi-term in emacs I think it might have something to do with a unsupported ansi escape code or something like that, but I'm not really sure - the value of PS1 for this terminal session is: \[\e]0;\u@\h: \w\a\]

eterm-color: Unknown terminal type

北慕城南 提交于 2019-11-30 07:17:30
In an ansi-term terminal in Emacs, when I ssh to a specific remote host, the terminal is not recognized properly, and I get the error: 'eterm-color': unknown terminal type. I added export TERMINFO=~/.terminfo to .bashrc on the remote machine, and I have tried the following on the remote machine: cp -r /usr/share/emacs/21.4/etc/e ~/.terminfo Just in case, I also tried copying over my own local copy of /etc/e (Emacs 24.3) to ~/.terminfo on the remote machine. Also, in case it matters, if I try infocmp on the remote machine, I get: >infocmp infocmp: couldn't open terminfo file /usr/share/terminfo

Shell prompt repeating when using ssh in ansi-term

a 夏天 提交于 2019-11-30 05:33:55
问题 When I use SSH to login to a Ubuntu 12.04 machine from an ansi-term session in emacs the prompt displays incorrectly: 0;ubuntu@jumplin: ~ubuntu@jumplin:~$ This should look like the following: ubuntu@jumplin:~$ I've tried a few of the suggestions in relation to utf-8 and colour support however they don't seem to be working (colour currently works fine in ansi-term): Strange characters in ansi-term in emacs I think it might have something to do with a unsupported ansi escape code or something