24 votes
Accepted

What was Emacs like back in the 80s?

Emacs predates GNU Emacs and thus predates Emacs Lisp. In most of the 80s, Emacs was only what we now call terminal-mode (and only one frame), and there was no mouse, menu-bar, tool-bar, fringe, ...
Drew's user avatar
  • 77.5k
15 votes

emacs on terminal does not recognise option as alt-key on mac

I solve the problem with answer of ohruunuruus. Maybe post a snapshot will be more easy to understand.
Jason Zhou's user avatar
15 votes
Accepted

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

There are a few answers here. Quitting Emacs without C-x C-c First, you can quit emacs by running the command that C-x C-c is bound to: M-x save-buffers-kill-terminal. Alternatives to recursive ...
zck's user avatar
  • 9,092
15 votes
Accepted

less psql, more emacs

Emacs has in-built support for many databases, including Postgres. M-x sql-postgres RET
offby1's user avatar
  • 310
14 votes

fix or workaround: "Terminal is not fully functional"

Quick answer That's not an issue, it's a statement of fact. M-x shell isn't a fully functional terminal - it simply can't do what you want it to do. If you want a full terminal emulator in emacs, you ...
Tyler's user avatar
  • 22.3k
14 votes
Accepted

`M-[` causes emacs to print weird (possibly escape) sequences

You’re in complicated territory. A terminal emulator listens for key events from the operating system, and translates them into characters. It then sends those characters to the running application (...
db48x's user avatar
  • 18k
13 votes
Accepted

How do I disable menu-bar-mode only for tty frames?

The function display-graphic-p returns nil for non-GUI Emacs. So something like the following should work: (unless (display-graphic-p) (menu-bar-mode -1)) EDIT My original answer only works for ...
Tyler's user avatar
  • 22.3k
13 votes
Accepted

#000000 and true black in terminal Emacs colors

Turns out this was a problem with gnome-terminal. I fixed it by opening the profile preferences from the gnome-terminal menu bar, selecting colours, and changing the built-in scheme to Linux console.
Tyler's user avatar
  • 22.3k
13 votes
Accepted

Zero width space shows as underscore

Refer to C-hig (elisp)Glyphless Chars By default the zero-width characters are displayed using the thin-space display method which will "Display a thin space, 1-pixel wide on graphical displays, ...
phils's user avatar
  • 51.1k
13 votes
Accepted

Is there an Emacs package for terminal emulation?

Yes, there are many, and several of them come with Emacs. Which you will prefer depends on your precise needs. shell and eshell will both give you shells with no terminal–emulation at all. shell runs ...
db48x's user avatar
  • 18k
10 votes
Accepted

copy from shell and paste in terminal-emacs

You can't copy-paste between Emacs and a shell without using a system-wide copy-paste facility. Text terminals in general do not provide a copy-paste facility. It seems that you're running this ...
Gilles 'SO- stop being evil''s user avatar
8 votes

How to hide leading stars in windowless emacs org-mode?

The variable org-hide-leading-stars just uses the face org-hide behind the scenes. Pressing C-hv (to get help on a variable) and then typing org-hide-leading-starsEnter will show you what you need to ...
Gambo's user avatar
  • 929
8 votes

What is the difference between standalone version of emacs and the one that runs inside terminal?

Some packages managers provides two different Emacs, emacs and emacs-nox. The core is the same and behave in a very similar way. The nox version (no X means without X11 support) and should be ...
smonff's user avatar
  • 1,589
8 votes
Accepted

How to turn off bracketed paste mode?

My crystal ball said you should remove (global-set-key (kbd "M-[") 'previous-multiframe-window) from your ~/.emacs. You might like to M-x report-emacs-bug and ask for global-set-key to complain ...
Stefan's user avatar
  • 26.4k
8 votes
Accepted

Why I can't fold (org-cycle) in non-GUI?

I'll try to answer why pressing the Tab key leads to different results when you're using the Emacs GUI vs. Emacs in a terminal. org-cycle is bound to both <tab> and TAB (at least in my and ...
aplaice's user avatar
  • 2,176
7 votes
Accepted

Emacs in PuTTY with xterm-mouse-mode: how to paste?

If mouse reporting is on, then Shift+click is still interpreted by the terminal and not passed to the application. Thus, if a right-click pastes outside Emacs, and a straight right-click is passed ...
Gilles 'SO- stop being evil''s user avatar
7 votes
Accepted

Does emacs use ncurses to render in the terminal?

Emacs uses termcap to query for the terminal capabilities (such as what the control codes for positioning the cursor are) and implement something along ncurses with its own optimizations to redraw as ...
wasamasa's user avatar
  • 22.2k
7 votes

less psql, more emacs

In addition to offby1's answer (which is what you were asking for) also take note of: https://www.emacswiki.org/emacs/CategorySql which covers sql-mode and sql-interactive-mode in general. https://...
phils's user avatar
  • 51.1k
6 votes

Problems with keybindings when using terminal

One further update for macOS/iTerm2 users: iTerm now ships with a "Report modifiers using CSI u" option within preferences that configures LeoNerd's libtermkey for you with a single checkbox. As of ...
ambirdsall's user avatar
6 votes

Problems with keybindings when using terminal

Gilles' answer stated: On OSX, you can configure iTerm2 by selecting an escape sequence for each key combination, one by one. I had a little trouble getting there, so here a detailed explanation in ...
Pinecone's user avatar
  • 161
6 votes
Accepted

How to check for emacs being initialized in daemon mode?

I think daemonp is what you're looking for. From its docstring: Return non-nil if the current emacs process is a daemon. If the daemon was given a name argument, return that name.
Kyle Meyer's user avatar
  • 7,024
6 votes
Accepted

Conditional True color (24 bit color) support for iTerm2 and Terminal.app in OSX with Fish shell

I believe that the @ symbols in your terminfo example are part of the Texinfo markup, rather than part of the terminfo code. Your terminfo entry should look like: # Use colon separators. xterm-24bit|...
Alan Third's user avatar
6 votes

fix or workaround: "Terminal is not fully functional"

If you don't care about whether Emacs is a "fully-functional" terminal or not and you just want it to work without making you press enter, then run the psql command \pset pager off. This ...
db48x's user avatar
  • 18k
6 votes
Accepted

Use the terminal background color for the emacs -nw

It seems that setting the background color of the default font to an undefined value turns off any customization. This feels like a hack, and there might be a better way to do this, but this worked ...
Haskell Curry's user avatar
5 votes

Use the command key in Terminal on OSX?

I am using macOS Catalina, and iTerm2 3.3. This method probably works for several prior versions of macOS and iTerm2 but I have not researched it. Note that when you remap the modifier keys below ...
Pinecone062's user avatar
5 votes
Accepted

What is the difference between standalone version of emacs and the one that runs inside terminal?

They differ by the calling environment. Small dictionary: Emacs frame - what ordinary people call window. Emacs window - a place in Emacs where you see some buffer(start emacs, and run C-x 2 to see ...
MatthewRock's user avatar
  • 1,483
5 votes

Unable to change cursor type in terminal

On a terminal, you can't change the shape of cursor. From the Emacs manual: On a text terminal, the cursor’s appearance is controlled by the terminal, largely out of the control of Emacs. Some ...
goedson's user avatar
  • 173
5 votes
Accepted

Set a title to an Emacs instance running in a terminal

A bit of terminology that can help you find help and documentation: for historical reasons, what the rest of the world calls a window is called frame in Emacs. What Emacs calls a window is what the ...
Gilles 'SO- stop being evil''s user avatar
5 votes

Why doesn't set-background-color work in my init file?

set-background-color does work in your init file! It's just that the setting is overridden later in Emacs's startup process, which goes (in part) something like this: load site init files load user ...
Sue D. Nymme's user avatar
  • 1,456
5 votes
Accepted

Almost working smoothly attempt to get terminal Emacs to copy to clipboard

I'm also a loyal emacs-nw user, and have struggled with this over the recent emacs versions. What works for me, and without any need to C-g, follows. Note that it has a safety check that is linux-...
user1404316's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible