Questions tagged [ansi-term]

34 questions
52
votes
1 answer

Emacs multi-term not displaying special characters correctly

This is odd. I have defined the following prompt in zsh: local user_host='%{$terminfo[bold]$fg[green]%}%n @ %m%{$reset_color%}' local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}' local…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
13
votes
2 answers

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

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…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
12
votes
1 answer

Emacs ansi-term maximum buffer size?

I like running shell programs using Emacs ansi-term mode, but I wonder how to set the maximum buffer size in ansi-term mode so I won't lose command history even when there are lot of lines? (Google doesn't seem to give a obvious answer.)
chtlp
  • 645
  • 1
  • 6
  • 16
9
votes
1 answer

Resizing terminal in Emacs

Say I have an Emacs window (i.e. a subdivision of what Emacs calls a frame) running an M-x ansi-term buffer (e.g. running zsh) with that is ~500 pixels wide. I then run several shell commands and the output is wrapped to fit within those 500 pixels.…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
7
votes
1 answer

eterm-color: Unknown terminal type

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…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
6
votes
1 answer

Issues with newline character while using ansi-term in emacs

I am trying to use ansi-term in emacs (configured to tcsh shell). I see some issues with newline characters being displayed. If I try the following from the terminal (ansi-term), I get the correct output: myterm > echo "Line1"; echo "Line2"; echo…
Pulimon
  • 1,776
  • 4
  • 31
  • 45
6
votes
3 answers

Modifying ansi-term colors in Emacs

The text in the red ellipse below is hard to read                       When I inspect the face with C-u C-x = (what face) I see the following: So I went to update the face term-bold (see below), but the color doesn't seem to match what I actually…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
6
votes
2 answers

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

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…
jcollum
  • 43,623
  • 55
  • 191
  • 321
5
votes
0 answers

Unable to send SIGINT (C-c C-c) to a process running in ansi-term

In Emacs, sometimes I start a shell with ansi-term, and then from this shell I run IPython (another shell) that enters a long loop printing a long, long output. When this happens, I often want to sendSIGINT to stop the script that IPython is…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
5
votes
2 answers

Emacs: Have a completely different background-color in ansi-term

I'm normally using a light background color in all my Emacs faces. But I'm used to dark backgrounds in a terminal. Therefore I wanted to set the background color of ansi-term to black. However when I do this only the part where text has already been…
Charleston
  • 78
  • 6
5
votes
3 answers

Shell prompt repeating when using ssh in ansi-term

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…
Jordan Hagan
  • 161
  • 1
  • 7
5
votes
1 answer

How to send M-. to terminal (multi-term) in Emacs

I am trying to send the command M-. (i.e. .) to a terminal that is running in multi-term in Emacs. For reference, M-. is typically bound to insert the last argument of the previous command in a terminal (i.e. yank-last-arg /…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
4
votes
1 answer

Paste a word at ansi-term on Emacs

I use ansi-term on Emacs and need to paste some words there. "Paste" only works with mouse mid-button. I know that with C-x C-j and C-c C-k, we can switch between char run and line run, but it is inconvenient. I prefer to use C-y or C-c y to do the…
snowgoose
  • 165
  • 1
  • 9
3
votes
1 answer

Sending bash commands to an open terminal buffer in emacs

I've been trying to improve my emacs life lately, and one thing I've done is make use of projectile and perspective to organize my buffers sensibly. As part of this I wrote an elisp function to open up (or return to) a named ansi-term buffer that is…
cmw
  • 855
  • 7
  • 17
3
votes
1 answer

How to fix broken prompt in ansi-term emacs?

My prompt is working fine withing a normal bash terminal, but it appears broken (or it shows broken) in an ansi-term emacs bash terminal. This is my PS1: \[\e[00;31m\]\u\[\e[00;33m\]@\h\[\e[00;32m\] \W\[\e[1;34m\] $\[\e[0m\] And it looks like this…
Ciprian Tomoiagă
  • 3,773
  • 4
  • 41
  • 65
1
2 3