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.

181 questions
28
votes
1 answer

What are all the ways of launching a shell from inside emacs and what are their various properties?

I know of at least four possibilities: eshell term ansi-term shell What's the complete list of tools built-in to emacs to launch a shell, and what benefits and drawbacks do they offer?
Trevoke
  • 2,375
  • 21
  • 34
15
votes
5 answers

Use Super in emacs -nw in linux

I have been struggling to find a simple and direct question to the answer and therefore I have decided to ask here. Q: Is there a way to use Super in Emacs launched in a Terminal in Linux? P.S: I read a lot of information about xmodmap but I think…
Andrea Richiardi
  • 310
  • 3
  • 10
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
  • 8,984
  • 2
  • 31
  • 65
12
votes
1 answer

Automatically update default-directory when PWD changes in shell-mode and term-mode

Are there any options or packages which cause default-directory to be updated if the working directory changes in shell-mode and term-mode? I.e. when using cd, but the solution would have to be more robust than just look for this particular command…
tarsius
  • 25,298
  • 4
  • 69
  • 109
11
votes
2 answers

How to remap backward-delete and help command while using Emacs from a terminal emulator?

I was using Emacs on CentOS 7 from the MobaXterm terminal on Windows 7, but the backspace key instead of backward-deleting a character invokes the prefix command C-h. According to EmacsWiki, I tried to put the following lines in…
Joseph Tesfaye
  • 389
  • 2
  • 13
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
8
votes
5 answers

Is it possible to use Bash for Windows as the term in Emacs for Windows

When I run M-x term on the Windows version of Emacs, I am prompted to run C:/Program Files/emacs/libexec/emacs/25.1/x86_64-w64-mingw32/cmdproxy.exe New versions of Windows 10 have the Linux subsystem and its shell (which is installed at…
Startec
  • 1,354
  • 1
  • 13
  • 30
8
votes
1 answer

Rename buffer in Ibuffer

A buffer can be renamed with rename-buffer command. Is it possible to rename buffers from IBuffer? A use case is to rename a bunch of Term buffers from Ibuffer. The default name for Term buffers is *terminal*.
nephewtom
  • 2,219
  • 17
  • 29
8
votes
2 answers

How to override keybindings for `term`

For some tasks like using ruby's pry and tmux both eshell and shell do not behave well. I tried to use term, but my innability to override the keybindings in term makes its use annoying. How can I set, say, M-o as other-window and M-k as kill-buffer…
Renan Ranelli
  • 1,379
  • 10
  • 17
8
votes
1 answer

Proper TERM type for eshell

Is there a way to make eshell behave better? By default printenv TERM returns dumb. For example brew often complains about the terminal type and causes eshell to "jiggle" while the progress bar is showing. This doesn't happen in term. I suspect this…
Maciej Goszczycki
  • 1,777
  • 13
  • 18
7
votes
1 answer

Problem with line number limit in linum-mode

I am using the term of Emacs to compile some code, with linum-mode enabled to display the line numbers for the terminal, and the line numbers stop increasing as soon as they reach 2049. If I write source code and I reach 2049 lines will this happen…
Adam
  • 2,407
  • 2
  • 21
  • 38
7
votes
1 answer

Difference between shell and term

I would like to understand what is the difference between M-x shell and M-x term? Also under which circumstances should be used the first and under which the second?
Adam
  • 2,407
  • 2
  • 21
  • 38
7
votes
2 answers

How can I quit Emacs from within a term within Emacs?

I'm in a situation where I have to ssh into a machine and do all of my coding on there. For a while I would ssh in and then use tmux and emacs -nw mode. Recently, I discovered the term command. Now instead of using tmux, I open up normal Emacs on my…
user8810
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

TERM, terminfo, termcap. What are they how does Emacs use it?

I have a few questions about the relationship between TERM, terminfo and termcap and Emacs. I do not know exactly what TERM, terminfo and termcap are. I am on OS X. I do not know what values (and where) I should set variables such as TERM. But…
Amelio Vazquez-Reina
  • 5,157
  • 4
  • 32
  • 47
1
2 3
12 13