Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [term]

is for the Emacs text terminal emulator, which by default runs in a sub-shell in a buffer named `*terminal*` with `term-mode`. `M-x term` command starts a terminal.

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
283 views

run “term” on MS-Windows

I typed M-x term; then Emacs prompted a query string followed by a default pathname: Run program: D:/Progs/emacs-29.1/libexec/emacs/29.1/x86_64-w64-mingw32/cmdproxy.exe Directly typed <return>. ...
shynur's user avatar
  • 5,328
5 votes
0 answers
812 views

FZF broken displaying in emacs terminal

I'm struggling to run fzf in emacs but cannot figure out whats my problem. When I run fzf - and start typing - text gets mess up, similar to this: I tried run fzf in term, eshell, ansi-term, multi-...
sandric's user avatar
  • 1,271
4 votes
0 answers
423 views

"Invalid face reference: linum" even load linum after make frame

I want to have line number at buffer, but when I use Emacs server, the Message buffer display the following error: Invalid face reference: font-lock-comment-delimiter-face [2 times] Invalid face ...
astroboylrx's user avatar
4 votes
0 answers
626 views

Tmux and term-mode

I've been running tmux inside of my term buffer but when I do that there are some issues and the buffer often becomes messed up, with the cursor being in the wrong spot and overwriting text or other ...
Jules's user avatar
  • 1,225
4 votes
0 answers
343 views

1024 char limit on command line in emacs shell mode on OSX

I am running into a 1024 character limit for a bash command line in emacs shell mode. For example the command: echo xxxxxxxxxxxxx...x with 1018 x's (for a total line length of 1023 chars) works ...
GFurnas's user avatar
  • 141
3 votes
0 answers
244 views

Switch between term and shell keeping directory

I am a beginner user of emacs so please answer being aware of this. I use dired to connect to a remote computer and navigate directories. I sometimes want to go to a shell or terminal on the remote ...
user27815's user avatar
  • 249
3 votes
0 answers
692 views

Terminal Buffer: error in process filter: Invalid face: unspecified

On Fedora 25 with GNU Emacs 25.1.90 (which I am running via an AppImage, you can download it from here and test out your theories as to what's wrong if you would like, remember AppImages will only ...
Josh Pinto's user avatar
2 votes
0 answers
40 views

How to restore a coding environment?

Every other day I continue work on a coding project which involves these steps: Open a file in the project Open a terminal buffer e.g.: m-x term Change to that term buffer Enter command in termin e.g....
jjk's user avatar
  • 744
2 votes
0 answers
234 views

ANSI TERM via `M-x TERM`: How to change line highlighting color?

How do you change the line-highlighting color in an ANSI-TERM?: I am using PDB++'s sticky mode for Python debugging. This is how to appears on a regular terminal (lubuntu 17.04): Notice the word ...
WickedJargon's user avatar
2 votes
0 answers
427 views

How to enable control character (e.g. carriage return) handling in emacs shell

I run compilation processes that, in a terminal, list what was built all on the same line. In emacs shell they are all on separate lines, filling my shell buffer with unwanted output. I realize I ...
dazz13's user avatar
  • 21
2 votes
1 answer
2k views

256 colors in FbTerm

Is there a way to get emacs with 256 colors in FbTerm? I've seen some old posts on the topic but I haven't seen any confirmation that it will work. EDIT: If I start FbTerm with this command: ...
MajorBriggs's user avatar
2 votes
0 answers
475 views

How to make ansi-term output read only?

When using ansi-term in line mode emacs lets you edit the buffer arbitrarily, not just after the last prompt. I'm trying to make it read only so I stop fudging with command output. The problem is all ...
Joseph Garvin's user avatar
1 vote
1 answer
32 views

How to make all lines in a buffer have equal height?

The context I'm using term in GNU Emacs 29.3. I usually use tmux inside *terminal* (i.e. the buffer that is opened by M-x term) and in my tmux configuration I made the tmux status bar to be displayed ...
rdrg109's user avatar
  • 428
1 vote
0 answers
49 views

How can I change buffer local key binding C-h, C-x, M-x in term raw mode?

I'm running a specific console application in a term window (char/raw mode). This application has no need for C-h, C-x, and M-x, so they should just do what they always do in Emacs. However, I don't ...
fred's user avatar
  • 21
1 vote
0 answers
111 views

Why does calling `term-send-backspace` (just pressing backspace) create a newline in the `*terminal*` buffer in `term-mode`?

Specs: i@debord:~$ emacs --version GNU Emacs 26.3.50 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the ...
John DeBord's user avatar
1 vote
0 answers
128 views

emacs -nw & gnome-terminal or xterm: can't distinguish C-M-v and C-M-S-v

emacs (v.26.3) can distinguish, out of the box, C-M-v (scroll-other-window) and C-M-S-v (scroll-other-window-down). On the other hand, emacs -nw, when run in either gnome-terminal, mate-terminal or ...
Diagon's user avatar
  • 147
1 vote
0 answers
121 views

How to make ansi-term wrap lines instead of adding newline so it can fit the window?

See the screenshot. I typed one long line in the buffer, didn't hit enter but cursor is already on line 3. This causes multiple problems, eg. when I copy the output of a command from ansi-term to ...
whysoserious's user avatar
1 vote
0 answers
162 views

Truncation of text in Emacs terminal emulators

When I log in to the cluster using shell or eshell, I get the following message: 2018-04-11: The MEM1024 node is now back in the queue. The hardware had to be completely replaced, which means there ...
honey_badger's user avatar
1 vote
0 answers
174 views

In emacs term-mode (not shell-mode), how can we edit a command just like we type C-x C-e in real terminal

In real terminal, if we type C-x C-e, we can edit a typed command using an editor. Could have similar function in emacs term-mode? After typing a shortcut, I would like to edit the current command ...
AhLeung's user avatar
  • 1,083
1 vote
0 answers
401 views

Multi-term issue with line wrapping for shell but not applications

I use multi-term within spacemacs for most of my command-line operations. It works well except some annoying behavior in the shell prompt (zsh but similar for bash) on commands which go over the ...
user355559's user avatar
1 vote
0 answers
762 views

Powerline rendering in EMACS

The rendering of term command in emacs runs my zsh shell but doesn't render it properly. Can anyone direct me to a fix? This is how it should look:
Afroz Alam's user avatar
1 vote
0 answers
29 views

how to achieve the behavior of :silent !a.out in vim

I am on terminal. I'd like to invoke a ncurses based program a.out. In vim, I do :silent !a.out, which will directly show a.out. In emacs, the closest thing I can do is (suspend-emacs "a.out"). ...
FunkyBaby's user avatar
  • 807
1 vote
0 answers
522 views

ansi-term changes in line-mode not registered after char-mode

Here's the situation. I start M-x ansi-term, which launches it in term-char-mode. I type the following: echo "hello world" and press RET, which outputs on the next line the expected output hello ...
space_voyager's user avatar
1 vote
0 answers
803 views

single escape to quit helm in terminal

This blog post on migrating from vim to evil-mode in emacs gives code to make a single ESC quit/cancel helm instead of 3. It worked on Emacs.app (OS X) but doesn't work from Terminal.app (both emacs ...
Alejandro Erickson's user avatar
1 vote
1 answer
2k views

ncurses-like based applications won't work in emacs terminals

No *curses applications (like top, htop, Linux kernel's make menuconfig and others) will work under emacs' different terms. However, the only one which seems to work is git add -i It behaves the same ...
deb0ch's user avatar
  • 203
0 votes
0 answers
15 views

Avoid contents in M-x term to be shown out of the window

Table of contents The problem The question Appendix: Install and use font 5x7.bdf Appendix: My minimal Emacs configuration NOTE: This post contains many screenshots of the graphical interface of ...
rdrg109's user avatar
  • 428
0 votes
0 answers
14 views

is there any way to use a standard/built-in terminfo (vt100, ansi, xterm..) for a terminal

https://www.gnu.org/software/emacs/manual/html_node/emacs/Terminal-emulator.html says Term mode recognizes and handles ANSI-standard VT100-style escape sequences, which are accepted by most modern ...
Alex028502's user avatar
0 votes
1 answer
26 views

How to have 'emacs' behave like 'find-file' within vterm?

I know that such a thing is possible within eshell; however, I am now using vterm, and I'd like for when I type emacs for it to be as if I typed find-file. For example, for eshell, you could do alias ...
user129393192's user avatar
0 votes
0 answers
35 views

How can I bind a prefix key to escape term-line-mode?

I've figured out how to get out of char mode, but not the other way around;) #+begin_src elisp (with-eval-after-load 'term ;Terminal Orientation ;(define-key term-raw-map (kbd "C-M-e o l"...
Jason Hunter's user avatar
0 votes
0 answers
27 views

When running `term` in standalone emacs on OSX, how can I copy output?

This question maybe sounds a bit strange, but I can't for the life of me work out how to copy output from term when it is running in the standalone version ("standalone" as in when emacs ...
Fergie's user avatar
  • 213
0 votes
0 answers
183 views

How to have a multiple line prompt terminal?

Using mainly ansi-term,term or vterm I'd like the prompt to contain a line with informations for directory,user and git, whilst the actual input prompt line to be below. I've heard of zsh though doubt ...
jjk's user avatar
  • 744
0 votes
0 answers
681 views

Interactive terminal solution for Emacs on Windows?

I recently tried to move from over to Emacs but hit a brick wall while trying to setup a terminal. While shell and eshell work fine, they are not really interactive so you can't really run things such ...
daedsidog's user avatar
  • 157
0 votes
0 answers
30 views

Create term horizontal split that is 20% size key binding

I'd like a key binding that can create a term buffer in a 25 percent split. What I mean by that is, with a specific key binding like SPC t c, I'd like to open up a terminal in a split.
abhinav chavali's user avatar
0 votes
0 answers
40 views

Weird UI of term in Doom

My terminal in Doom looks like shown in picture but I can't seem to find a way to solve this. I have term activated in my init.el
DiogoJDO's user avatar
0 votes
0 answers
795 views

Python : name '__file__' is not defined

So as you can see, in my terminal, I was able to execute the file without error, but once I tried from the python shell, whether in the terminal or the one integrated in Emacs, there is an error, it ...
sinekonata's user avatar
0 votes
2 answers
568 views

How to get kill-buffer-hook to detach a screen session prior to kill-buffer?

I keep many screen session running in the backgroud, which I access with M-x eshell-command "screen -r <myscreen>". Before I kill the *screen* buffer, I have to detach the session with C-a d. ...
petermao's user avatar
0 votes
0 answers
1k views

How do I stop a process with Ctrl-C in Term?

I'm very new to Emacs. I've opened a terminal with M-x term, and started a server running on localhost. It says Press CTRL+c to quit. However, Ctrl-C appears to be mapped to Emacs commands. How can I ...
Josh Friedlander's user avatar
0 votes
0 answers
256 views

Send command to run in eshell, after compiled

So I've been mapping my M-x compile like this, according to c-mode-hook or c++-mode-hook: (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) ...
mle0312's user avatar
  • 295
0 votes
0 answers
49 views

Record command into bash source block using asciinema and org-babel

As you perhaps know, asciinema rec (asciinema rec path/to/file) and generate an asciicast file which contain all commands recorded on terminal. I think using asciinema to replay this file (asciinema ...
reyman64's user avatar
0 votes
1 answer
161 views

How to show colours and clear when running React development server in eshell?

Here is how the usual Ubuntu terminal looks when you run the React development serving using npm start and make changes to your source: Say the server was already running and you tried to do npm ...
scribe's user avatar
  • 1,035
0 votes
0 answers
71 views

Is there a pexpect like automation for serial-term or term-mode

Is there something similar to pexpect that can be used to automate a tty connection running inside emacs, i.e. in term-mode or on top of serial-term ? I'd like to automate some repetitive tasks like ...
Konrad Eisele's user avatar
0 votes
0 answers
198 views

C-r in term-mode doesn't access reverse-i-search

I find that in term-char-mode with bash, C-r doesn't activate the shell's reverse-i-search function. How can I do that? PS. Apologies: I was using multi-term mode and had somehow convinced myself ...
Toothrot's user avatar
  • 3,264
0 votes
0 answers
494 views

Fixing Evil inside Emacs terminal mode

I use Evil mode inside Emacs to emulate vim-style editing. In the Xwindows based graphical user interface of Emacs on Ubuntu 16.04, Evil mode works perfectly. When I launch emacs in terminal mode ...
smilingbuddha's user avatar
0 votes
0 answers
61 views

Spacemacs terminal emulator share history with zsh

In plain vanilla emacs, I can M-x term RET RET. This starts zsh. And it 'shares' history with my non-emacs terminals. So, I can ESC / and search for commands, etc. How do I achieve that for ...
deshmukh's user avatar
  • 1,912
0 votes
0 answers
132 views

multi-term: after ssh to a remote server, the prompt messed up

The expected prompt is /home/oracle, but it's something like \342\236\234. What need to do to get it show the right folder name?
Daniel Wu's user avatar
  • 1,771
0 votes
0 answers
339 views

term without line numbers and highlight for current line

I have the following settings in ~/.emacs: (setq linum-relative-current-symbol "") (linum-mode) (linum-relative-global-mode) (global-hl-line-mode t) In order to supress both these features in ...
deshmukh's user avatar
  • 1,912
0 votes
0 answers
240 views

Incorrect Line Spacing in (term-mode, ansi-term, eshell, shell) Output

The output of certain commands in multiple major modes (term-mode, ansi-term, shell, eshell) is incorrectly spaced (see images). This occurs for numerous commands and does not occur in other emulators ...
user avatar
0 votes
3 answers
534 views

multi-term terminal messages configurations not working as expected

I'm trying to follow this article and configure my multi-term to work with remote files seamlessly. Edit: That article seems to be down currently. Try the cached version here. But it's not working as ...
chitti's user avatar
  • 51
-1 votes
1 answer
137 views

Using after-change-functions for an ansi-term buffer

I'm writing some Elisp that compiles code in watch mode using make-term. When the code compiles/tests pass, the compilation output is only a couple of lines. When there's an error, it can be much ...
rlms's user avatar
  • 99