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.

Emacs uses and synonymously for the text terminal emulator.

Emacs runs by default in , which can use or switch between the two input modes: and character mode.

For controlling the appearance of terminal screens, Emacs supports escape sequences recognized by such modern terminals as xterm.

Within a text , which is a non-window terminal, Emacs can display only one at a time.

Emacs Lisp provides terminal type as one of the extended data types for programming editing features.

When using the tags or , use additional tags where appropriate or describe with appropriate Emacs terminology related to terminal emulators.

183 questions
14
votes
1 answer

in term-mode, how do I run regular emacs commands?

Upon starting term-mode, Emacs delegates all keypresses to the terminal you're running. That's great for compatibility purposes, but leaves Emacs functionality behind. How do I get back to Emacs features (for example, to switch a buffer).
zck
  • 9,092
  • 2
  • 33
  • 65
8
votes
7 answers

How to open a external terminal from emacs

Brand new emacs user here. I want to have the ability of opening a terminal with current file path from emacs, like what the open terminal here package does in sublime text 2. By terminal, I mean a separate external terminal emulator running bash…
Ply_py
  • 83
  • 1
  • 4
6
votes
1 answer

Exit emacs client that runs inside emacs terminal buffer

Recently, I'd wanted to commit to my git repository from within emacs. Instead of running some git mode commands, I opened up a terminal buffer and run git commit inside. This works fine, except that the commit message editor is, of course, emacs.…
choeger
  • 191
  • 2
6
votes
2 answers

Is there a linux terminal with emacs keybindings?

I sometimes need to work in a terminal. E.g compile gtk. I found that the native emacs shell doesn't quite do what a native terminal does. And anyway I'd like to keep them two separate. Now, is there a terminal that has a similar feel as emacs?…
Leo Ufimtsev
  • 4,558
  • 3
  • 23
  • 46
3
votes
1 answer

How to make 'term' close the buffer when the process exits?

When I press Ctrl-D in a 'term', the buffer stays open with the text "Process terminal finished". How can I make this buffer close instead of staying open with this text displayed? Note, this is similar to this question: How to automatically kill a…
ideasman42
  • 8,786
  • 1
  • 32
  • 114
3
votes
1 answer

Copy from terminal (tmux) to emacs with color?

I'm currently started using tmux because of getting tired of term-mode, and I managed to shortcut in tmux to open current session output in emacs so I could search and select from it in emacs. I have the only problem - I wish for emacs buffer to…
sandric
  • 1,271
  • 9
  • 20
3
votes
1 answer

In term-mode how can I make line-mode the default

Got line-mode to work as for this: in term-mode, how do I run regular emacs commands? Now how do I make it the default ?
haknick
  • 145
  • 5
2
votes
1 answer

emacs 27.0.50 term.el doesn't play well with zsh

I used to compile emacs from the master branch every month or so and looks like there has been a lot of changes to term.el (move to lexical binding) and when I open term or ansi-term there is always a % character at the end of every command i…
Chakravarthy Raghunandan
  • 3,192
  • 2
  • 19
  • 43
2
votes
1 answer

Speed (timing) considerations in Emacs terminal emulators

I found emacs terminal emulator (M-x term) to be very convenient. However, it is essential for me to time certain portions of my code accurately (in order to compare speed of different algorithms fairly). To make sure that my speed measurements are…
2
votes
2 answers

Can I completely replace xterm with emacs' term mode?

What short comings can I expect from this mode, and what are some use cases for which I should really prefer my operating system's terminal emulator?
Dodgie
  • 472
  • 2
  • 14
2
votes
1 answer

terminal emulator for ncurses applications

What is the recommended terminal emulator in emacs to use ncurses applications? I use things like wicd-curses, cmake and other applications with rich ncurses interfaces and I am having trouble in finding an appropriate configuration where keyboard…
garjola
  • 81
  • 3
2
votes
1 answer

have a function to disable close confirmation on terms. work on all terms but shell?

so i have this function i found on the interent (defun set-no-process-query-on-exit () (let ((proc (get-buffer-process (current-buffer)))) (when (processp proc) (set-process-query-on-exit-flag proc nil)))) (add-hook 'term-exec-hook…
zeltak
  • 1,725
  • 12
  • 28
2
votes
1 answer

Emacs not inheriting transparency from terminal

When I run Emacs in a terminal window, via emacs - nw or emacsclient, Emacs loads in the terminal but without transparency. (My terminal windows are set around 50 percent transparency.) What could be the problem? I'm running xfce4. Thanks
Liam
  • 31
  • 2
1
vote
1 answer

Can emacs be configured to support more terminals?

I recently switched from rxvt-unicode to st. This means I went from $TERM=rxvt-unicode-256color to $TERM=st-256color. I'm happy with the switch and want to continue to use st. However, I quickly noticed that emacs was not rendering my colors…
Brian Fitzpatrick
  • 2,325
  • 1
  • 20
  • 42
1
vote
1 answer

previous-line function in term-char-mode

Since emacs 26.1 (changeset 8a1576cc03) I can't do M-x previous-line in term-char-mode. The cursor always returns to prompt line. On the other side, if I use the mouse or M-x scroll-down the cursor stay at the target point. I try to write a function…
djangoliv
  • 3,199
  • 16
  • 32
1
2