<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hack on galvanist</title>
    <link>/tags/hack/</link>
    <description>Recent content in Hack on galvanist</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 21 Feb 2014 00:21:00 +0000</lastBuildDate>
    <atom:link href="/tags/hack/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fixing bpython&#39;s delete</title>
      <link>/posts/2014-02-21-fixing-bpythons-delete/</link>
      <pubDate>Fri, 21 Feb 2014 00:21:00 +0000</pubDate>
      <guid>/posts/2014-02-21-fixing-bpythons-delete/</guid>
      <description>&lt;p&gt;A guy named Shironoo &lt;a href=&#34;http://blog.shironoo.org/2012/04/03/216&#34;&gt;found one solution&lt;/a&gt; (&lt;a href=&#34;http://translate.google.com/translate?u=http%3A%2F%2Fblog.shironoo.org%2F2012%2F04%2F03%2F216&amp;amp;act=url&#34;&gt;which I read in english&lt;/a&gt;) to a problem I&amp;rsquo;d been having with &lt;a href=&#34;https://bitbucket.org/bobf/bpython&#34;&gt;bpython&lt;/a&gt; over SSH. Namely that using the delete key &lt;strong&gt;ruins the world&lt;/strong&gt;, or at least kills the current line.&lt;/p&gt;&#xA;&lt;p&gt;My slightly modified (temporary) solution is to make this change:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;in &lt;code&gt;bpython/cli.py&lt;/code&gt;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;in &lt;code&gt;def p_key(self, key):&lt;/code&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;replace &lt;code&gt;if platform.system() == &#39;Windows&#39;:&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;with &lt;code&gt;if platform.system() in (&#39;Windows&#39;, &#39;Linux&#39;):&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;You can find your bpython install with this kinda thing:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
