Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using ansi-term in spacemacs, some bugs happens no matter in GUI or Terminal #2775

Closed
freestyle4568 opened this issue Aug 27, 2015 · 11 comments

Comments

@freestyle4568
Copy link

1.When I type some command in the bottom of ansi-term, it always jump up and down.
Just like you type one time, it jump one. I DON not know how to fix it.
2.when I open the vim in ansi-term or use ansi-term in terminal, the color become very ugly.
spacemacs-bug1
spacemacs-bug2

@syl20bnr
Copy link
Owner

Weird, it is like you are using em-smart in ansi-term. Does the behavior you see matches this description ?

When you hit enter, the cursor stays on the previous prompt, you can then re-execute the last command verbatim or modify it to correct an error. Only when you edit the last command, the cursor goes to the last prompt.

You can read more about this here: https://github.com/syl20bnr/spacemacs/tree/develop/contrib/shell#enable-em-smart-in-eshell

@cmccloud
Copy link
Contributor

cmccloud commented Sep 3, 2015

For the color scheme problem, try this:
M-x customize-face "term"
untick default bg and default fg colors - all that should be left is inherit

@freestyle4568
Copy link
Author

sorry man, it does not work still.I has given up....

@cmccloud
Copy link
Contributor

cmccloud commented Sep 4, 2015

It may not be the same issue, but I was having color and formatting problems using ansi-term. There were two issues that I had to solve - the first was solved by running the following command, which I found here: http://rawsyntax.com/blog/learn-emacs-zsh-and-multi-term/

tic -o ~/.terminfo /Applications/Emacs.app/Contents/Resources/etc/e/eterm-color.ti

Note that I'm on OSX so the location of your eterm-color.ti file will most likely be different, to find it you can run:

locate eterm-color.ti

If that still doesn't work, try adding this to your emacs config:

(setq system-uses-terminfo nil)

The second issue was related to custom-set-faces overriding the value of term's background and foreground color face (the same thing I mentioned earlier) - if you want to try again this is the command for it, but it's the same as using the customize menu. You should make sure that's the only line in your custom-set-faces related to term.

(custom-set-faces
 '(term ((t (:inherit default)))))

Hopefully that fixes your issues, but if not look for me @cmccloud on the gitter chat and I'll see if I can't help.

@mclearc
Copy link
Contributor

mclearc commented Sep 7, 2015

I had the same problem and the two solutions offered by @cmccloud solved it.

@freestyle4568
Copy link
Author

thank you very much. But I still solve them. Sorry, I decise to give up spacemacs and turn to eclipse and vim. Maybe emacs is not fitable for me. But thank you

@freestyle4568
Copy link
Author

I still wish spacemacs will develop more and more convience. Yes, it will become the best emacs eventually, I believe. Thank you for spacemacs, thank you for everybody.I love emacs and I am sure I will come back when its version is 1.0.0.

@goolj
Copy link

goolj commented Sep 14, 2015

The comments in this issue address the color / formatting problem described. Is there a solution to "When I type some command in the bottom of ansi-term, it always jump up and down.
Just like you type one time, it jump one."

I have the same jumping-lines problem (emacs 24.3, RHEL7). The problem doesn't seem to manifest itself when I run a vanilla emacs configuration (no spacemacs).

@StreakyCobra
Copy link
Contributor

@JGoold Can you try if this bug still arise with the last spacemacs release? Maybe also with the develop branch if you can ☺️ ?

@goolj
Copy link

goolj commented Nov 27, 2015

This does appear to be fixed in spacemacs-0.104.4. However, I also moved
to emacs 24.5.1 from emacs 24.3... so I'm not sure which change actually
resolved the issue.

On Tue, Nov 17, 2015 at 1:20 PM Fabien Dubosson notifications@github.com
wrote:

@JGoold https://github.com/jgoold Can you try if this bug still arise
with the last spacemacs release? Maybe also with the develop branch if
you can [image: ☺️] ?


Reply to this email directly or view it on GitHub
#2775 (comment)
.

@StreakyCobra
Copy link
Contributor

@JGoold Thx for your response :-)

A solution for colors has been given, and the jumping problem should have been solved in the last release. As no one said to have this problem anymore, it I'm closing it. Feel free to open a new issue in case of troubles, and link this one in it if you think it's related ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants