the corner office

a blog, by Colin Pretorius

« Installed Gentoo on an old machine | Main | Dept of Forgotten Bands (and web sites) »

# Ctrl-S hangs an xterm

I'm sure this happens to lots of people with a Windows background (or even people who live in 'modern' editors like Kate or gedit). Editing in vim, and instead of hitting Escape and :w to save the file, I hit Ctrl-S. Instead of saving the file, the vim session 'hangs' and won't respond to the usual keypresses. This happened to me once before and I must admit that the last time I manually killed the vim process. This time around Google was at hand, and now I know I'm not the only one who's had this problem :-)

Solution: it's not vim's fault, it's actually an xterm thing. In xterm, Ctrl-S is a kind of scroll lock and locks the console. Hitting Ctrl-Q gets things back to normal.

File under: linux : {2005.03.12 01:53}

Comments:

1. Pradeep (2006.11.10 - 05:56) #

This is very useful information, i earlier faced this problem and lost my changes as i killed the session manually.

2. suman (2008.05.13 - 12:43) #

This is the thing I was looking for long time; great thing, of great help. Thank you.

3. Cliff (2008.10.23 - 14:00) #

Thank you so much. I already killed more than 10 sessions for this problem. I should search google earlier...

4. David (2008.11.05 - 21:58) #

This trick made my day. Thank you!!

5. bash (2008.11.20 - 19:48) #

thanks man.

6. Narmada (2009.05.13 - 01:19) #

Thank u. It is very helpful.

7. white_rotten_rabbit (2009.08.28 - 12:19) #

Thank you very much from me too, what a great help!

8. Trashead (2010.04.16 - 03:17) #

Thanks Man!!!

9. HV Gowda (2010.06.08 - 01:18) #

Thanks a lot it is very helpfull :-).

10. Pat (2010.07.09 - 23:04) #

Thanks, this helped.

11. James Strong (2010.08.19 - 14:03) #

That was SO very helpful, I just kept restart the xterm session.

12. sandy (2010.09.11 - 23:42) #

Very Helpful! THanks a lot!

13. Narendra (2010.10.05 - 05:07) #

Very Helpful!

14. Anuradha (2010.10.21 - 06:42) #

It worked for me. Thanks a lot. Was looking for it from long time

15. loonies (2010.12.28 - 04:13) #

hahhaha, I'm not the only one :)
thanks a lot!

16. Rok (2011.01.20 - 07:18) #

Thx.

17. varun (2011.03.25 - 09:12) #

THANKS A LOT!!!

18. Priya Sundararajan (2011.04.18 - 15:28) #

Thanks!

19. Ulises (2011.05.14 - 02:22) #

It also worked for me, I was going to contact IT department, but google is always faster :)

20. Allan Daemon (2011.05.15 - 23:58) #

THANKS A LOT!!!

21. daniel (2011.05.23 - 10:01) #

very very helpful. thx a lot!

22. Rob (2011.06.14 - 16:44) #

Brilliant. I cannot tell you how much frustration this has liberated from my life.

23. Keyur (2011.07.28 - 10:20) #

Thanks lot... Any idea how to disable 'Ctrl-S' from xterm?

24. Amaelitha (2011.08.10 - 17:32) #

Fantastic ! Thanks !!
It happened to me a lot of times. If only I had searched google earlier...

25. Anand (2011.11.30 - 10:51) #

Thanks a real lot. This has ended a long-standing point of frustration for me. I can't recount how many xterms/screens I have had to kill because of this stupid problem. Somehow thought of googling it very late in the day.

Brilliant.

Anand

26. Vitalii (2012.01.20 - 18:59) #

Thanks a lot.

Add a comment

Your name (mandatory):

Your email:
Your email address is not displayed
Your home page:

Comment (sorry, no HTML):

Remember details?
Yes No

meta

-home-
about
contact
disclaimer
articles
code
tech blog

style: [?]
[plain.dark.blue]

Categories

java
linux
music
notes/domino
personal
politiek
studies
techie
thee_blog
world

RSS Feeds

rssfeed all posts
rssfeed all cmts
rssfeed tech posts
rssfeed tech cmts

Archives

2012.02
2012.01
2011.12
2011.11
2011.10
2011.09
2011.08
2011.07
2011.06
2011.05
2011.04
2011.03
2011.02
2011.01
2010.12
2010.11
2010.10
2010.09
2010.08
2010.07
2010.06
2010.05
2010.04
2010.03
2010.02
2010.01
2009.12
2009.11
2009.10
2009.09
2009.08
2009.07
2009.06
2009.05
2009.04
2009.03
2009.02
2009.01
2008.12
2008.11
2008.10
2008.09
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07
2007.06
2007.05
2007.04
2007.03
2007.02
2007.01
2006.12
2006.11
2006.10
2006.09
2006.08
2006.07
2006.06
2006.05
2006.04
2006.03
2006.02
2006.01
2005.12
2005.11
2005.10
2005.09
2005.08
2005.07
2005.06
2005.05
2005.04
2005.03
2005.02
2005.01
2004.12
2004.11
2004.10
2004.09
2004.08
2004.07
2004.06
2004.05
2004.04
2004.03
2004.02
2004.01
2003.12
2003.11
2003.10
2003.09
2003.08
2003.07
2003.06

© Colin Pretorius