Key Bindings: How do I turn off ctrl-s?

I'm connecting to my Linode using Lish. In emacs I use ctrl-s for search. I also tend to inadvertently hit ctrl-s when i'm saving (ctrl-x s), which poses no problem except I noticed that emacs on my Linode is behaving differently. Ctrl-s suspends the terminal.

How can I fix this in emacs or is there a way to simply disable 'ctrl-s' in the terminal?

5 Replies

Why not just install SSH and do it that way? Lish is supposed to be for the remote save-my-ass-I-fscked-up console.

@freedomischaos:

Why not just install SSH and do it that way? Lish is supposed to be for the remote save-my-ass-I-fscked-up console.

Seconded. It's really much easier.

Nate,

The problem is that Lish is a GNU screen instance into your linode's console from the host computer. I am not a screen user but I bet that is the problem. You can probably search in the screen man pages to see what your particular problem might be. But I agree with the previous posters that a better idea would be to ssh directly into your linode. Less headaches that way, and your emacs instance will probably behave as you intend without any workarounds.

Cheers,

Antonio

(Ctrl-a f) should toggle between the flow control modes of screen. You probably want it off ("-flow") when you are using emacs.

Normally you could set the default for this with the screen command line or .screenrc, but since this screen instance is running on the host I don't think there is any way to set the default.

For the record…

Ctrl-S is the XOFF command. Crl-Q is XON - if you've halted flow control with Ctrl-S, just type Ctrl-Q to put it back on.

(and personally, I see nothing wrong with using lish, if you're the only one using the box. SSH makes some things easier, but on the other hand it's also another potential attack vector. But you do need to be aware of the reasons why you're using lish specifically.)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct