LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-10-2008, 01:04 PM   #1
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Rep: Reputation: 15
Question Changing the behavior of Ctrl-S keybinding/keyboard mapping


Hello:

I am a user of a Linux machine that I don't have root access to. I mostly just ssh into that machine using Cygwin's shell/terminal. I want to change the behavior of Ctrl-S since I use Vim and inside Vim I have made a mapping of Ctrl-S to save (:w). However, whenever I press Ctrl-S, the terminal gets suspended and I have to press Ctrl-Q to resume it. It gets really annoying since I am really really used to saving by pressing Ctrl-S (from using MS products).

Is it possible to change this keybinding as a user of the system (not root)?

Second question, when I ssh, if I become idle for 2 minutes it automatically kills the connection. Is there some software that makes sure I am not idle by periodically pressing a key like alt or Esc in the terminal? (Not talking about a mouse macro or something like that... I am talking of maybe a command line argument to ssh to make sure my connection stays even after 2 minutes. Something like 10 minutes idle time would be much more sane).

Thanks,
 
Old 02-10-2008, 01:21 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,784

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
If you're using KDE you can go to Control Center, Regional & Accessibility, Keyboard Shortcuts, Application Shortcuts and chamge the mapping for File - Save to Ctrl S.

In re the timeout, there should be a file in /etc in which you can change a setting to "keep alive" or some such thing. I can't really help you beyond that.
 
Old 02-10-2008, 01:35 PM   #3
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver View Post
If you're using KDE you can go to Control Center, Regional & Accessibility, Keyboard Shortcuts, Application Shortcuts and chamge the mapping for File - Save to Ctrl S.

In re the timeout, there should be a file in /etc in which you can change a setting to "keep alive" or some such thing. I can't really help you beyond that.
Thanks for the advice, but I am using Cygwin and Putty most of the time. I need to change some setting on the terminal itself, or maybe in my home directory where I ssh into to change the behavior of Ctrl-S etc.

I found the keep alive setting there, so thanks for that. Case is closed as far as that is concerned.
 
Old 02-10-2008, 01:40 PM   #4
madiyaan
Member
 
Registered: Apr 2003
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by madiyaan View Post
Thanks for the advice, but I am using Cygwin and Putty most of the time. I need to change some setting on the terminal itself, or maybe in my home directory where I ssh into to change the behavior of Ctrl-S etc.

I found the keep alive setting there, so thanks for that. Case is closed as far as that is concerned.
Case closed for Ctrl-S keybinding issue.

I found this great webpage: http://sealence.x10hosting.com/wordpress/?p=28.

Basically the command to execute is this:

Code:
stty -ixon -ixoff
 
  


Reply

Tags
binding, key, keyboard, mapping, suspend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Key mapping reverts to default after changing keyboard layout in KDE @milan Linux - General 0 03-07-2007 06:18 AM
logitech elite keyboard keybinding issues klownish Linux - Hardware 0 06-24-2006 01:29 AM
Keybinding for CTRL+Z starunj Linux - General 0 02-18-2006 05:00 AM
Program for keybinding of Multimedia buttons on keyboard alitrix Linux - Software 24 10-17-2004 07:23 PM
Changing keyboard mapping for xterm in xwindow stting Slackware 7 07-11-2004 08:45 PM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration