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.

1
vote
1answer
17 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
22 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
30 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
32 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] ...
0
votes
1answer
59 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 ...
1
vote
1answer
428 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
37 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 ...
0
votes
1answer
68 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 ...
2
votes
1answer
115 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
0answers
102 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
49 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
2k 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/...
0
votes
1answer
253 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
2answers
120 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
103 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
1answer
236 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 ...
0
votes
0answers
122 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
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"). ...
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 ...
4
votes
1answer
207 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 ...
2
votes
0answers
126 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
125 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
1answer
346 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
173 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
386 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 ...
0
votes
1answer
88 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
947 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/...
4
votes
1answer
188 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
1answer
435 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 ...
2
votes
2answers
817 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
239 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 ...
1
vote
2answers
963 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-...
2
votes
2answers
877 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 ...
0
votes
2answers
331 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 ...
3
votes
2answers
111 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 ...
0
votes
1answer
33 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
265 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 ...
1
vote
0answers
130 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 ...
1
vote
0answers
538 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 ...
2
votes
1answer
338 views

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 ...
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 ...
3
votes
0answers
186 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 ...
5
votes
1answer
234 views

Check if terminal supports Unicode

I would like to use special mark symbols not only in window-system but also in xterm: (setq gnus-summary-to-prefix (if window-system "▒ " "==> ")) What check I should use?
1
vote
1answer
291 views

Long pause during Emacs startup, prior to init file running [duplicate]

Inexperienced programmer here - When I open Emacs (24.5) on Mac Mavericks 10.9, I am getting a delay between the Emacs GUI opening and the init file being loaded. There is a white screen, which ...
1
vote
1answer
143 views

Latex fragment in terminal

I am currently discovering orgmode and as a math student I want to write my math lessons with this beautiful tool. I love the way LaTeX code can be displayed inline in emacs. I would like to know if ...
1
vote
1answer
342 views

Emacs terminal prompt

My main setup uses zsh and prezto on Mac OS with a custom prompt theme (I use iTerm2 and not Terminal.app). I was wondering what's the best way to have a similar experience with an Emacs terminal ...
1
vote
1answer
234 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 ...
2
votes
4answers
481 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 ...
1
vote
3answers
892 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 ...
3
votes
2answers
205 views

Emacs term loses characters when using ps and grep

I'm trying to use different terminals on Emacs. The one I'm currently trying is term. When I execute a ps command and grep its output on Emacs, I don't get the same result as in gnome-terminal, xterm,...