<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Making perl getc work as advertised in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504297#M705145</link>
    <description>Almost right; it actually turned out to be "stty raw" (instead of "stty -raw").  That fixed it!&lt;BR /&gt;&lt;BR /&gt;Thank you!!!</description>
    <pubDate>Mon, 14 Mar 2005 16:21:26 GMT</pubDate>
    <dc:creator>Matt Hearn</dc:creator>
    <dc:date>2005-03-14T16:21:26Z</dc:date>
    <item>
      <title>Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504295#M705143</link>
      <description>I'm trying to figure out how to get perl "getc" to work in a way that you don't have to hit "enter" to get it to read the character.&lt;BR /&gt;&lt;BR /&gt;Right now, I can type a letter and then hit "enter" and it reads the letter, but I want to make a menu script that won't require the "enter" input, just read the letter when pressed and continue.&lt;BR /&gt;&lt;BR /&gt;I'm told that there are stty settings that can make this happen, but I can't find any documentation that tells me what they might need to be on an HP-UX server.&lt;BR /&gt;&lt;BR /&gt;I'm not even sure if what I want to do is possible with perl, but my perl manual seems to indicate that it is if the stty settings are right.&lt;BR /&gt;&lt;BR /&gt;Has anyone been able to do this?  Thanks!</description>
      <pubDate>Mon, 14 Mar 2005 15:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504295#M705143</guid>
      <dc:creator>Matt Hearn</dc:creator>
      <dc:date>2005-03-14T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504296#M705144</link>
      <description>stty -raw&lt;BR /&gt; &lt;BR /&gt;is probabily what you are looking for.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 14 Mar 2005 16:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504296#M705144</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-03-14T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504297#M705145</link>
      <description>Almost right; it actually turned out to be "stty raw" (instead of "stty -raw").  That fixed it!&lt;BR /&gt;&lt;BR /&gt;Thank you!!!</description>
      <pubDate>Mon, 14 Mar 2005 16:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504297#M705145</guid>
      <dc:creator>Matt Hearn</dc:creator>
      <dc:date>2005-03-14T16:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504298#M705146</link>
      <description>This is a FAQ, please run:&lt;BR /&gt;&lt;BR /&gt;perldoc -q keyboard&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 16:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504298#M705146</guid>
      <dc:creator>Vali Ticau</dc:creator>
      <dc:date>2005-03-14T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504299#M705147</link>
      <description>stty raw will do this but a better approach would be to use one of the Curses modules so that keystrokes like Arrow-Keys (which vary with TERM) can be recognized independent of the terminal type.</description>
      <pubDate>Mon, 14 Mar 2005 17:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504299#M705147</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-14T17:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making perl getc work as advertised</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504300#M705148</link>
      <description>using stty commands is not very portable in Perl scripting. If you're only using it on a single machine, don't use redirection (input from files instead of keyboard) or stick it in batchjobs, you might be OK, otherwise I'd suggest looking for more portable ways, like Term::ReadLine, Term::ReadLine::Gnu, Term::Cap, Term::GetKey, readline, and probably many others available on CPAN&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/search?query=Term%3A%3A&amp;amp;mode=all" target="_blank"&gt;http://search.cpan.org/search?query=Term%3A%3A&amp;amp;mode=all&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Mon, 14 Mar 2005 17:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-perl-getc-work-as-advertised/m-p/3504300#M705148</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2005-03-14T17:48:46Z</dc:date>
    </item>
  </channel>
</rss>

