<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>H3RALD: New Release: RawLine 0.2.0</title>
    <link>http://www.h3rald.com/blog/rawline-020</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Fabio Cevasco's Writings</description>
    <item>
      <title>New Release: RawLine 0.2.0</title>
      <description>&lt;p&gt;&lt;del&gt;InLine&lt;/del&gt; RawLine 0.2.0 is out!&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Raw&lt;/strong&gt;Line is the new name for InLine, in case you didn&amp;#8217;t guess. The name was changed to avoid name collision problems with the RubyInline project.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s what&amp;#8217;s new:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Added /examples and /test directory to gem.&lt;/li&gt;
		&lt;li&gt;Escape codes can now be used in prompt.&lt;/li&gt;
		&lt;li&gt;It is now possible to use bind(key, &amp;#38;block) with a String as key, even if the corresponding escape sequence is not defined.&lt;/li&gt;
		&lt;li&gt;Added Editor#write_line(string) to print a any string (and &amp;#8220;hit return&amp;#8221;).&lt;/li&gt;
		&lt;li&gt;Library name changed to &amp;#8220;RawLine&amp;#8221; to avoid name collision issues (Bug &lt;a href="http://rubyforge.org/tracker/?func=detail&amp;#38;aid=18879&amp;#38;group_id=5622&amp;#38;atid=21788"&gt;18879&lt;/a&gt;).&lt;/li&gt;
		&lt;li&gt;Provided alternative implementation for left and right arrows if terminal
supports escape sequences (on Windows, it requires the Win32Console gem).&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;In particular, I decided to provide an &amp;#8220;optimized implementation&amp;#8221; for the left and right arrows using escape sequences rather than shameful hacks. This is now possible because the Win32Console gem now enables &lt;span class="caps"&gt;ANSI&lt;/span&gt; escape sequences on Windows as well (weehee!).&lt;/p&gt;


	&lt;p&gt;So:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;If you&amp;#8217;re on *nix all good, your terminal is smart and can understand escape sequences =&amp;gt; the new implementation will be used.&lt;/li&gt;
		&lt;li&gt;If you&amp;#8217;re on Windows and you installed Win32Console, your termnal is smart and can understand escape sequences =&amp;gt; the new implementation will be used.&lt;/li&gt;
		&lt;li&gt;If you&amp;#8217;re on Windows and you didn&amp;#8217;t install Win32Console, then your terminal is stupid and it doesn&amp;#8217;t understand escape sequences, so the old implementation will be used.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The new implementation is significantly faster than the old one, on Windows at least, and the cursor now blinks properly when left or right arrows are pressed.&lt;/p&gt;


	&lt;p&gt;I re-emplemented only cursor movement because I&amp;#8217;m still having some problems in getting the delete/insert escapes to work properly (or better: how I want them to work!).&lt;/p&gt;</description>
      <pubDate>Wed, 02 Apr 2008 05:33:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:6241d85c-e816-4c5c-9e9e-61a4f87d59de</guid>
      <author>h3rald</author>
      <link>http://www.h3rald.com/blog/rawline-020</link>
      <category>Blog</category>
      <category>ruby</category>
      <category>programming</category>
      <category>OpenSource</category>
      <category>RawLine</category>
      <trackback:ping>http://www.h3rald.com/trackback/entries/156</trackback:ping>
    </item>
  </channel>
</rss>
