<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Valentin's Lab &#187; readline</title>
	<atom:link href="https://vaab.blog.kal.fr/tag/readline/feed/" rel="self" type="application/rss+xml" />
	<link>https://vaab.blog.kal.fr</link>
	<description>Ratiocination of an opensource techie</description>
	<lastBuildDate>Thu, 15 Nov 2018 08:04:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=vaab&amp;popout=1&amp;url=https%3A%2F%2Fvaab.blog.kal.fr%2F&amp;language=en_US&amp;category=text&amp;title=Valentin%27s+Lab&amp;description=Ratiocination+of+an+opensource+techie&amp;tags=blog" type="text/html" />
	<item>
		<title>Enabling Ctrl-S for forward-history-search in bash</title>
		<link>https://vaab.blog.kal.fr/2010/11/11/enabling-ctrl-s-for-forward-history-search-in-bash/</link>
		<comments>https://vaab.blog.kal.fr/2010/11/11/enabling-ctrl-s-for-forward-history-search-in-bash/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 11:58:51 +0000</pubDate>
		<dc:creator><![CDATA[vaab]]></dc:creator>
				<category><![CDATA[comp]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sci]]></category>
		<category><![CDATA[readline]]></category>

		<guid isPermaLink="false">http://vaab.blog.kal.fr/?p=67</guid>
		<description><![CDATA[Ctrl-R and Ctrl-S are advertised in every readline command-line to do backward and forward search in your command history (as emacs does on text with the same shortcuts). And you've probably come to the fact that if Ctrl-R is working &#8230;<p class="read-more"><a href="https://vaab.blog.kal.fr/2010/11/11/enabling-ctrl-s-for-forward-history-search-in-bash/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Ctrl-R and Ctrl-S are advertised in every <em>readline</em> command-line to do backward and forward search in your command history (as <em>emacs</em> does on text with the same shortcuts).</p>
<p>And you've probably come to the fact that if Ctrl-R is working (and you use it every day), Ctrl-S doesn't seem to work and freezes the screen. So you've just learned not to use Ctrl-S.</p>
<p><em>readline</em> based command-line program (as any unix shell) will answer to Ctrl-S <strong>if they receive the keystroke</strong>. The keystroke Ctrl-S actually does not reach <em>readline</em> because it's caught by the TTY driver. TTY driver will trigger a pause in the reception of characters upon Ctrl-S keystroke, and this is why the screen appears to freeze. You can unfreeze with Ctrl-Q.</p>
<p>This pausing mechanism is from old times when you could ask for other end to pause sending characters. This was meant to prevent character loss. With nowadays hardware, this is not useful anymore, and you can safely de-activate this obsolete feature to enable back Ctrl-S in your <em>readline</em> based command-line with:</p>
<pre>stty stop ''</pre>
<p>Note that you can put this in your <em>~/.bashrc</em> if needed.</p>
 <p><a href="https://vaab.blog.kal.fr/?flattrss_redirect&amp;id=67&amp;md5=b53863f8e870a41cbc58ddc27a557164" title="Flattr" target="_blank"><img src="https://vaab.blog.kal.fr/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>https://vaab.blog.kal.fr/2010/11/11/enabling-ctrl-s-for-forward-history-search-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" title="Flattr this!" href="https://flattr.com/submit/auto?user_id=vaab&amp;popout=1&amp;url=https%3A%2F%2Fvaab.blog.kal.fr%2F2010%2F11%2F11%2Fenabling-ctrl-s-for-forward-history-search-in-bash%2F&amp;language=en_GB&amp;category=text&amp;title=Enabling+Ctrl-S+for+forward-history-search+in+bash&amp;description=Ctrl-R+and+Ctrl-S+are+advertised+in+every+readline+command-line+to+do+backward+and+forward+search+in+your+command+history+%28as+emacs+does+on+text+with+the+same+shortcuts%29.+And+you%27ve...&amp;tags=readline%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>
