Questions tagged [terminal]

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
1
vote
2answers
1k views

Unable to change cursor type in terminal

I'm trying to change the cursor type in Emacs. Here are the steps I'm following, C-h v cursor-type check the value of cursor type. It is set to t. start emacs with emacs -nw -Q and type (setq cursor-...
29
votes
3answers
7k views

Problems with keybindings when using terminal

I have the following line in init.el: (global-set-key [(control \;)] 'comment-region) It works very well in GUI window, but if emacs is invoked with the -nw option then C-; doesn't comment region, ...
3
votes
3answers
470 views

How do I page when “ESC - (1 of n) [C-h paging/help]” shows in the emacs status bar?

I am an Emacs newbie having some problems navigating around when using the terminal, but pressing the ESC key brings up a huge list of key options which gives me the option of paging down and possibly ...
6
votes
6answers
2k views

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 ...
4
votes
1answer
220 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 ...
0
votes
0answers
16 views

In a terminal (not in Emacs), how can I use emacs helm/swipe to choose old shell command from bash_history?

In a terminal, we can use C-r to search a command from bash_history, but it is far less powerful than the Emacs package like helm-swoop or ivy-swipe. How can I use a shortcut in terminal (e.g., C-r) ...
0
votes
0answers
16 views

Compilation mode doesn't see PATH variable

My problem is simple, I'm working in embedded systems with a RTOS named zephyr. To compile my projects I need some variables set in PATH and the problem is that when I run projectile-compile-project ...
2
votes
2answers
143 views

Howto display unicode character \u2026 in terminal mode in emacs

Magit uses Horizontal Ellipsis unicode escape "\u2026" (which should display as "...") to mark hidden section. How can I configure the Terminal/Emacs to display them when running in terminal mode (...
2
votes
1answer
966 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: ...
1
vote
1answer
51 views

Cargo-process does not accept user input

Using the Emacs mode for Cargo, I'm able to build and run Rust code inside Emacs. However, the terminal that opens when executing cargo-process-run does not accept user input. For example, when ...
0
votes
0answers
30 views

How to paste from clipboard/yanked text into the ansi-term in evil mode?

I'm macos user and quite new to emacs and going to set up my workflow pretty similar to what I have in vim. To reduce typing while using asni-term, I need to paste a yanked content directly via ...
0
votes
1answer
137 views

Set different highlight-line color for emacs --no-window

How can I set a different color if I am using emacs on terminal (emacs --no-window)? I use a grey highlight line when using emacs with GUI because my background theme is white. Here is the code I use ...
0
votes
1answer
33 views

How input all params from console without interactively?

Here snippet of my elips function: (defun log-report (filePath uniqueText) "Create log4j record report from any log4j (e.g.traceXXX.log) files. Log4j level MUST be in square brackets. e.g.: [DEBUG] ...
1
vote
1answer
116 views

terminal fringes and diff-hl

I use diff-hl to highlight changed lines. However it doesn't play well in terminal mode. I know that terminal Emacs doesn't support fringes, and it is better to use diff-hl-margin-mode instead, it ...
0
votes
2answers
375 views

Set specific TERM variable for only emacs terminals

I'm using multi-term right now in GUI cocoa emacs on OSX, and it works great in general. However, I'm running into a bit of an issue with my TERM variable. I generally set it to xterm-256color for ...
0
votes
1answer
41 views

how to map <C-M-left>, <C-M-right> etc to the correct hex codes in iterm2

I'm looking to configure iterm2 to output the correct hexcodes that correspond to in emacs. There's a whole bunch of mappings predefined but it's very cryptic. I'm a little bit lost as to how these ...
3
votes
3answers
3k views

Emacs colors being set differently when TERM is 'screen-256color' and 'xterm-256color'

I'm using Emacs in a terminal and am finding that when the TERM environment variable is changed between screen-256color and xterm-256color, the default colors within Emacs are set differently. Just ...
1
vote
1answer
703 views

Set 24-bit colors terminal (Truecolor) for Solarized theme on Mac

I am trying to get Solarized theme color correct in terminal by enabling truecolor on my Mac, following the instruction from Spacemaces: https://github.com/syl20bnr/spacemacs/wiki/Terminal. But I ...
0
votes
1answer
331 views

Can not activate a virtual environment in emacs, but can through the usual shell

I created a virtual environment that I can activate used a command line from Terminal (Ubuntu): source/bin activate I did what follows to achieve the same on emacs: M-! then source/bin activate ...
2
votes
1answer
253 views

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 ...
2
votes
1answer
146 views

PS1 under term and shell doesn't match system

I find under both shells and terms in Emacs my prompt does not appear as I would expect based on my $PS1 appears as... # Shell under Emacs ]0;slackline@583.datascience.work.com: /home/slackline@samba....
0
votes
1answer
76 views

How can I get working motion keys with `emacs -nw`?

when I start Emacs without windowing system (-nw), the motion keys are not working. Instead, I get (parts of) the escape sequences, like: ;; This buffer is for text that is not saved, and for Lisp ...
15
votes
4answers
2k views

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 ...
0
votes
0answers
144 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 ...
0
votes
0answers
54 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
3answers
3k views

How can I compile and run my C code from within Emacs like I would with the terminal?

I recently moved from Code::Blocks to Emacs to write C code. The one thing I don't like (because it takes too much time and effort for a simple and repetitive task) is the fact that I can't compile/...
2
votes
2answers
147 views

C-x in terminal

I'm new to emacs and this has been bothering me for a while. Not only because I can't figure out how to do it but I can't find anyone else asking this question online. In M-x term, how can I make C-x ...
1
vote
1answer
128 views

How to turn off line wrap when opening from terminal

I'm trying to open a file from terminal and ensure that line-wrap will be off. I'm trying the following code, but it won't work emacs --no-window-system --eval '(setq truncate-lines 1)' file I don't ...
2
votes
4answers
540 views

What linux terminal app is compatible with emacs keybindings?

I am using terminal Emacs (emacs -nw). Gnome terminal doesn't behave well with it (key bindings break), and KDE's Konsole is even worse. Surprisingly, when I ssh from a windows machine the behavior is ...
0
votes
0answers
140 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 ...
1
vote
1answer
139 views

Custom title format in iTerm2 / Terminal

I've been looking all over but none of the guides I saw worked for me. I am trying to have the title of Spacemacs to show a custom format, namely the current project's name (the current folder's name)...
1
vote
0answers
26 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"). ...
1
vote
1answer
261 views

how to substitute SUPER keybindings in Emacs terminal mode?

In GNU Emacs GUI, I use the Mac Command key ⌘ as super: (setq mac-command-modifier 'super) However, the ⌘ key does not send input to Terminal or iTerm2. Given this, is there a way to simulate the ...
5
votes
1answer
2k views

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 ...
2
votes
0answers
138 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 ...
3
votes
2answers
114 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 ...
1
vote
1answer
429 views

Open a frame for emacs instance via terminal?

Say I have emacs open on one screen and on another I'm working in terminal. I see a file I want to open in emacs. Is there a quick way I could do something like emacs myfile and have a new frame, but ...
4
votes
0answers
186 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 *...
1
vote
3answers
931 views

Colors illegible after upgrading OS

After having upgraded a computer from Ubuntu 15.04 to 15.10 the colors in Emacs (which I run in the terminal with --no-window-system) have changed substantially and some text is now illegible. I would ...
0
votes
1answer
97 views

How to run `gprolog` under an Emacs sub-process shell?

I'd like to run the gprolog interactive interpreter in an Emacs sub-process shell (started with M-x shell). The interactive interpret starts without a problem, but it does not respond to some ...
1
vote
1answer
979 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/...
2
votes
1answer
491 views

ansi-term scroll problem on fast output

I use a terminal from within Emacs via M-x RET ansi-term RET. The problem is that when I run a program which echoes a lot of output, ansi-term first scrolls with the output (such that the last line of ...
4
votes
1answer
236 views

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 ...
2
votes
2answers
931 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?
2
votes
1answer
258 views

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

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 ...
1
vote
2answers
70 views

Compile-run-navigate traceback without term mode

I have experimented with emacs' various shells (term in combination with compilation-mode in particular), and have had performance problems. For that reason I still use a separate terminal (e.g. ...
0
votes
1answer
34 views

Output of emacsclient not visible in terminal, in contrast to Vim

Version: GNU Emacs 25.1.50.2 (GTK+ Version 3.18.9). Gnome terminal. When I type in terminal emulator: vim foo/bar.el. Then I close the Vim session with :wq, I see the content of my Vim screen in the ...
4
votes
0answers
288 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 ...