<rss version="2.0">
  <channel>
    <title>Haberdasher patches (Term::Screen)</title>
    <link>http://haberdasherhq.org</link>
    <description>Patches for Term::Screen</description>
    <language>en-en</language>
    <item>
      <title>Term::Screen - Restore terminal settings correctly</title>
      <description>&lt;pre&gt;*** /usr/local/share/perl/5.6.1/Term/Screen.pm.old      2003-02-14
10:08:36.000000000 +0000
--- /usr/local/share/perl/5.6.1/Term/Screen.pm  2003-02-14 10:09:48.000000000
+0000
***************
*** 92,104 ****
    $this-&gt;at(0,0);             # home cursor
    $this-&gt;{ECHO} = 1;            # start off echoing
    $| = 1;                     # for output flush on writes
    # wrapped so inherited versions can call with different input codes 
    eval { system('stty raw -echo'); };     # turn on raw input         
                                            # ignore errors
    return $this;                                          
  }

! sub DESTROY { system('stty -raw echo'); } }

  =item term(term)

--- 92,108 ----
    $this-&gt;at(0,0);             # home cursor
    $this-&gt;{ECHO} = 1;            # start off echoing
    $| = 1;                     # for output flush on writes
+   $this-&gt;{TERMSAVE} = `stty -g`;
    # wrapped so inherited versions can call with different input codes 
    eval { system('stty raw -echo'); };     # turn on raw input         
                                            # ignore errors
    return $this;                                          
  }

! sub DESTROY {
!   my ( $this ) = @_;
!   eval { system("stty ".$this-&gt;{TERMSAVE}) }
! }
   
  =item term(term)

&lt;/pre&gt;</description>
      <pubDate>Mon, 28 Aug 2006 18:31:28 +0100</pubDate>
      <link>http://haberdasherhq.org/demo/patches/show/4</link>
      <guid>http://haberdasherhq.org/demo/patches/show/4</guid>
    </item>
  </channel>
</rss>
