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.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Is there a way to speed up emac's “shell” mode?

I am new to emacs. I know we can open a shell, eshell, or term with M-x shell, M-x eshell and M-x term. I have a program that needs to run make then run. On an external terminal app, I am on XFCE so ...
0
votes
0answers
21 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 ...
2
votes
1answer
37 views

How to launch term at startup in Emacs?

I need to have Emacs open a terminal at start-up automatically (in order to use Fish in the terminal and use Emacs to for example search the Fish output). Normally I do this with 'M-x term'. Is ...
0
votes
0answers
11 views

The workspace of terminal in a directory

After starting `multi-term' , try to back to it from another buffer. it prompt: It confused me that term is categorized in OrgMode, which is a directory contains diary.org, inbox.org The new ...
0
votes
0answers
40 views

errors to install vterm to doom-emacs

Upon trying to install akermu/emacs-libvterm: Emacs libvterm integration It report the errors: HEAD is now at a6293a0 The F1 to F4 keys should send SS3 rather than CSI when unmodified [ 25%] No ...
1
vote
1answer
64 views

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 ...
2
votes
2answers
86 views

How to make M-x ansi-term behave like M-x shell (opening in new window)?

I use (global-set-key (kbd "C-c a") '(lambda () (interactive) (ansi-term "/bin/bash"))) to open a bash ansi-term. Unlike M-x shell, this "occupies" the whole buffer/frame. I am wondering if one ...
1
vote
1answer
73 views

Interactive lambda only calls 1 of several functions called in body

In term-mode I've configured the keybindings for term-line-mode and term-char-mode as follows: (setq term-bind-key-alist (list (cons "C-c C-j" '(lambda () (interactive) ...
0
votes
0answers
60 views

after connecting ssh in multi-term, prompt is messed up

After connecting ssh in emacs multi-term, prompt is repeated. How can I remove repeated prompt? I'm using OS X, OS X Terminal works well. It's only problem in emacs multi-term.
0
votes
1answer
51 views

Wrong default-directory when inside a tmux session

I'm trying to use tmux inside emacs for a long time. I want to use it to attach to remote (long living) session. Attaching to sessions works fine but I have some problems in my daily workflow because ...
1
vote
0answers
137 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 ...
0
votes
1answer
117 views

Term double prompting (duplicate prompts) in Emacs

My term in emacs appear: 0;me@debian: ~me@debian:~$ instead of me@debian:~$ ~$ echo $PS1 \[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\[\033[0;35m\]$\[\033[0m\] ...
2
votes
1answer
34 views

Emacs term in character mode still catching my keymap

I have the following code in my init.el (defun my-foo (arg) (interactive "^p") (message "We got hit") ) (defvar my-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-r") '...
3
votes
0answers
68 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 ...
0
votes
1answer
41 views

Launch term in command-line-default-directory

Currently, I have following key binding defined in my init.el: (global-set-key (kbd "C-c C-SPC") (lambda() (interactive) (term (getenv "SHELL"))...
2
votes
1answer
170 views

Nano not displaying correctly in term and ansi-term

Nano is displayed incorrectly in emacs when using term or ansi-term. This is what nano is supposed to look like (run in an ordinary terminal emulator): This is nano as run from ansi-term: In the ...
0
votes
0answers
50 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 ...
1
vote
0answers
199 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:
2
votes
1answer
90 views

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 ...
1
vote
1answer
414 views

Why does emacs (getenv “TERM”) return incorrect data?

I'm running Emacs 25.2.2 on Ubuntu 17.10. Although my environment has TERM=xterm-256color, (getenv "TERM") returns dumb, which is incorrect. Why does (getenv "TERM") return an incorrect value?
2
votes
1answer
364 views

How to avoid term turn line wrap into line break for long output

When the output in term is longer than the frame it will wrap the line. But when I copy and paste the output, I found the output will break under the wrap point, because it treat it as line break. How ...
0
votes
0answers
103 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?
0
votes
1answer
405 views

How to remap shift-arrow in term-mode?

Is there a way to map Shift-left or other arrow keys to custom functions in term-char-mode? I tried, but without luck: (define-key term-mode-map [s-left] 'sandric/term-switch-line-mode) Entering ...
0
votes
0answers
128 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 ...
0
votes
1answer
112 views

How to properly display script shell command output

I wish to be able to open current shell output in emacs, for that I use script command that logs all the output into file typescript. The problem is that it consist also with terminal codes for colors ...
5
votes
3answers
3k views

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 ...
2
votes
2answers
253 views

Running a command in term from eshell with arguments

Basically I want to run watch from eshell. Simply running watch date (for example) doesn't work (only the first header line is displayed). Apparently I should run it with term or ansi-term but these ...
4
votes
1answer
212 views

(How) can I emulate {eshell,comint}-output-filter-functions in term?

What I want to do from inside a term shell is have a function called when there is new output or a certain regexp (e.g. a prompt) appears in in a term's output. The callback function should then be ...
3
votes
1answer
82 views

Saving raw ANSI escape codes in M-x shell, M-x eshell, or M-x term

Each of M-x shell, M-x eshell, and M-x term in Emacs lets me save the buffer to a text file. But the terminal colors are not saved. How do I save the raw ANSI escape sequences too?
2
votes
0answers
129 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 ...
1
vote
1answer
204 views

utf-8 characters with eshell, eshell-visual-subcommands, and git

Using the configuration (eval-after-load "em-term" '(progn (add-to-list 'eshell-visual-subcommands '("git" "diff" "help" "log" "show")) (add-to-list 'eshell-visual-options '("git" "--help"...
4
votes
0answers
182 views

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 *...
2
votes
2answers
1k views

Fish shell looks weird in spacemacs

Any other shell besides eshell and shell in Spacemacs with Emacs v25.1.1 (GUI version) looks like this: To compare, the terminal in iTerm looks like this: The font that I use in my terminal is ...
0
votes
1answer
38 views

Magit-process shows every frame of dynamic “animated” output

I'm working with a project that has a pre-commit hook that outputs an "animated" progress bar and updates the output to show which step is completed. In the magit-process buffer it shows every frame ...
2
votes
1answer
116 views

Writing a complex dired function to open xterm and execute a command on all current marked files in dired

I'm trying to write a complex (to me) dired function, where I want to open a xterm window which will launch an application (fbot) with many arguments and input all marked dired files into that ...
1
vote
1answer
966 views

Spacemacs - start popup terminal window in evil-normal-state

I've added these keybinding configuration in my Spacemacs dot file, so that I can toggle the terminal by press the \ key. ;; Keybindings (define-key evil-normal-state-map (kbd "\\") 'spacemacs/...
1
vote
0answers
272 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 ...
0
votes
1answer
394 views

Run 'TERM=ansi' when shell starts

I use shell inside emacs but by default it prints output in 1 color. However, when I use grep, I would like to see substring I'm searching highlighted. To see colors, I can manually type TERM=ansi ...
2
votes
2answers
865 views

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?
3
votes
0answers
438 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 ...
2
votes
1answer
2k views

How do you set colors for term?

I want to run tmux in emacs. I checked that it works in term, but default colors are awfully hard to read: How can they be changed to a sensible setting from .emacs file?
2
votes
2answers
933 views

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 ...
1
vote
1answer
72 views

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-...
3
votes
0answers
461 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-...
1
vote
1answer
724 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 ...
0
votes
1answer
65 views

Enable cua-mode in term or ansi-term mode

While working with term or ansi-term in term-line mode, I am not able to use cua-mode bindings. Is this possible?
3
votes
2answers
113 views

How to launch terminal.app from elisp

I've been using shell-pop recently, and it's nice how I can pop to default-directory in term immediately. For the times I'd rather use a dedicated terminal, is it possible to create an equivalent for ...
3
votes
2answers
3k views

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 ...
3
votes
2answers
2k views

How to get a fully functional Julia REPL in emacs?

Some people like me prefer to keep as much as possible in one emacs window (it saves screen retail), so want to run Julia as an inferior shell in emacs. The "run-julia" command that comes with the ...
2
votes
1answer
543 views

Term buffer font-size

I am trying to make term buffer to use slightly smaller font than of the rest of Emacs. I was able to quickly find that for that I need to customize term face. I changed the font size, and indeed ...