Trying to run telnet in Emacs shell I cannot figure out how to send ^] to terminate it.

  • I think you can terminate with C-c C-c.
    – caisah
    Jun 8, 2016 at 13:08
  • @caisah nope, that doesn't work, neither does C-c C-z.
    – wvxvw
    Jun 8, 2016 at 13:16
  • 2
    You should be able to press C-q C-]
    – Jules
    Jun 8, 2016 at 14:33
  • @JulesTamagnan and yes indeed. You can make it an answer, if you want.
    – wvxvw
    Jun 8, 2016 at 15:37

1 Answer 1


You should be able to press C-q to run quoted-insert to insert any key chord you want. So pressing C-q C-] will insert ^] into the buffer instead of running the command bound to C-]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.