Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 118

Emacs can run entirely inside of a TTY terminal, by using the `-nw` flag at startup, or by compiling emacs with the `--without-x` flag.

6 votes
1 answer
1k views

0;95;0c escape code is inserted with typeahead in terminal emacs

Whenever I start the terminal emacs and there is typeahead (i.e., I start typing before emacs starts), the escape code 0;95;0c gets inserted into the buffer. For example, if I run sleep 3; emacs -Q t …
asmeurer's user avatar
  • 1,612
4 votes
Accepted

0;95;0c escape code is inserted with typeahead in terminal emacs

I figured it out. It is coming from the xterm-extra-capabilities setting, which by default does a check, which sends the "\e[>0c" code. I can confirm that echo -e "\e[>0c" in iTerm2 prints 0;95;0c to …
asmeurer's user avatar
  • 1,612
3 votes
0 answers
399 views

emacsclient doesn't start when visiting a file that is already open

I start emacsclient with emacsclient -a 'emacs-server-start' -nw --socket-name=$TTY, where emacs-server-start is a script that runs emacs --daemon="$TTY" (I use $TTY to get a different client for each …
asmeurer's user avatar
  • 1,612
2 votes
1 answer
111 views

Escape sequences like [<8;38;34m being inserted into my document when I middle click

I recently updated to emacs 25.1, and I'm noticing that sometimes escape sequences like [<8;38;34m or [<8;20;27m are being inserted into my document. I use emacs in the terminal (emacs -nw). I use iTe …
asmeurer's user avatar
  • 1,612
1 vote
Accepted

Escape sequences like [<8;38;34m being inserted into my document when I middle click

It looks like emacs 28.1 has fixed whatever was causing this. Quite a few things relating to terminal mouse reporting are much better in emacs 28.1.
asmeurer's user avatar
  • 1,612
8 votes
2 answers
2k views

What are my options for scroll bars in terminal emacs?

I use emacs in the terminal. One thing that I miss sometimes from a more traditional GUI editor are scrollbars. Sure, there's the percentage in the modeline, but sometimes you just want a visualizatio …
asmeurer's user avatar
  • 1,612
6 votes
1 answer
1k views

Change line number format with line-number-mode

With linum-mode, you could change how the line numbers appears by customizing linum-format. line-number-mode appears to have replaced linum-mode, and indeed it is better (for one thing, it correctly …
asmeurer's user avatar
  • 1,612
1 vote

emacs --daemon frozen when started with emacsclient file

I have found a reasonable workaround. First, add a script to your PATH with #!/bin/sh export TTY=$(basename `tty`) emacs --daemon="emacs-$TTY" emacsclient -n -nw --socket-name="emacs-$TTY" emacscli …
asmeurer's user avatar
  • 1,612
8 votes
4 answers
227 views

How can I look up help for a key sequence that I can't type

I know that I can look up help for a key sequence using C-h k <key sequence>, but I use Emacs in the terminal, and my terminal emulator doesn't pass all key sequences through to Emacs. Sometimes I'll …
asmeurer's user avatar
  • 1,612
3 votes
1 answer
2k views

emacs --daemon frozen when started with emacsclient file

This is somewhat of a follow up to Prevent emacsclient from blocking other instances. I am using emacsclient -a '' -nw --socket-name=$TTY where TTY=$(basename tty). I use emacs in the terminal and th …
asmeurer's user avatar
  • 1,612