2

I'd like to know how to close nano under a term using /bin/bash, all under the context of in emacs -nw. A plain ^X doesn't work.

I tried entering the character mode using C-c C-k, but that didn't seem to help. Is there another "just send this along" command for a key binding?

Sage Gerard
  • 1,311
  • 8
  • 29
  • So, you're running `emacs -nw`, then `M-x term` (`/bin/bash`), and then `nano`? Which version of Emacs are you running? `C-x` works fine for me to end `nano`. – Thomas Mar 23 '21 at 22:43
  • Thanks for asking. I updated the title and the question to answer these questions. If you can exit fine, then this may be a configuration problem. I'll check on this. – Sage Gerard Mar 23 '21 at 23:04
  • Maybe you need `C-q C-x` to quote the `C-x` to emacs, so that it can be passed to nano. – NickD Mar 25 '21 at 13:32

1 Answers1

3

Short answer: Esc Esc X will be interpreted by nano in the same manner as C-x.

Background: A [sometimes-]handy nano tip: press Esc twice followed by the desired key to send the equivalent Ctrl- command.

dat
  • 1,580
  • 1
  • 21
  • 30