<?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>Horatio Caine&#039;s Blog &#187; unix</title>
	<atom:link href="http://hxcaine.com/blog/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://hxcaine.com/blog</link>
	<description>A blog of life, ideas and code</description>
	<lastBuildDate>Thu, 19 Jun 2014 00:46:16 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Enabling command history in terminal programs like Sicstus</title>
		<link>http://hxcaine.com/blog/2011/05/07/enabling-command-history-in-terminal-programs-like-sicstus/</link>
		<comments>http://hxcaine.com/blog/2011/05/07/enabling-command-history-in-terminal-programs-like-sicstus/#comments</comments>
		<pubDate>Sat, 07 May 2011 14:40:20 +0000</pubDate>
		<dc:creator><![CDATA[Horatio Caine]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://hxcaine.com/blog/?p=220</guid>
		<description><![CDATA[When you get used to pressing the up arrow for history items, the tab auto-complete feature and other handy features in the Linux terminal, it can be irritating when the occasional program behaves differently. I have been using SICStus Prolog for my CS Prolog course and have been irritated by SICStus picking up the up [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>When you get used to pressing the up arrow for history items, the tab auto-complete feature and other handy features in the Linux terminal, it can be irritating when the occasional program behaves differently.</p>
<p>I have been using SICStus Prolog for my CS Prolog course and have been irritated by SICStus picking up the up arrow key as <strong>^[[A</strong> and not retrieving the last thing I typed.</p>
<p>To get it to work like the Bash shell and other programs do, you can use <strong>rlwrap [program]</strong>.</p>
<p>This program allows you to &#8216;wrap&#8217; a program you&#8217;re running, like SICStus, in the <strong>readline</strong> attribute. This contains the features you&#8217;re used to. Just type something like this at the terminal, e.g.</p><pre class="crayon-plain-tag">rlwrap sicstus</pre><p>It will &#8216;wrap&#8217; your program in the readline function and work as expected. Voila!</p>
<p>If you want more information on rlwrap, check out <a title="Man page for rlwrap" href="http://manpages.ubuntu.com/manpages/hardy/man1/rlwrap.1.html" target="_blank">the man (manual) page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hxcaine.com/blog/2011/05/07/enabling-command-history-in-terminal-programs-like-sicstus/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
