Prevent Ctrl+S in Yakuake

1

How do I prevent Ctrl+S from suspending output in Yakuake?

I need it to give it to the opened program in the console (such as Vim, I want to remap Ctrl+S to save in Vim).

Kokizzu

Posted 2013-03-15T12:00:56.403

Reputation: 1 205

Answers

2

Add this to your .bashrc or .zshrc

stty ixany
stty ixoff -ixon

Yang Liu

Posted 2013-03-15T12:00:56.403

Reputation: 136

1wow, when i press ctrl+s, it shows (i-search)'': something that i don't know what the use for.. (i know that ctrl+r do a reverse search, but this one does nothing) – Kokizzu – 2013-11-03T13:52:59.077

1@Kokizzu Try to press ctrl-p for at least one time and press ctrl-s. You will be able to search the history commands you've scrolled through using ctrl-p – Yang Liu – 2013-11-04T04:25:41.433

1

nevermind, found it :3

just add these on bashrc

vim() {
  local STTYOPTS="$(stty --save)"
  stty stop '' -ixoff
  command vim "$@"
  stty "$STTYOPTS"
}

reference: http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_files

Kokizzu

Posted 2013-03-15T12:00:56.403

Reputation: 1 205