<?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: using Curses in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233611#M895360</link>
    <description>Can't mail you a program from work but if you need to, I can mail you one from home later.  However, is is actually very simple.&lt;BR /&gt; &lt;BR /&gt;You just need to include the curses headers.  Set up a screen with "initscr()".  You probably want to follow that up with "cbreak()" and "noecho()" and you're away.  By default, the window you write to is stdscr and you can start playing with all the nice little (n)curses functions.  Most of which don't even take an argument so are very simple.  When finished, you link your program against "curses" and, on older systems tcap/terminfo as well.&lt;BR /&gt; &lt;BR /&gt;I miss curses programming as there isn't much call for it these days but it was fun.  So much fun I once did a "curses.sh" providing most curses functionality for shell scripters but sadly no longer have the code :(</description>
    <pubDate>Tue, 30 Mar 2004 06:10:57 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-03-30T06:10:57Z</dc:date>
    <item>
      <title>using Curses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233609#M895357</link>
      <description>I want to write a very simple program using curses.Where can i find a tutorial on curses.If possible can anyone mail me a simple program</description>
      <pubDate>Tue, 30 Mar 2004 05:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233609#M895357</guid>
      <dc:creator>yatin</dc:creator>
      <dc:date>2004-03-30T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: using Curses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233610#M895359</link>
      <description>Eric Raymond has written a famous tutotial :&lt;BR /&gt;&lt;A href="http://web.cs.mun.ca/~rod/ncurses/ncurses.html" target="_blank"&gt;http://web.cs.mun.ca/~rod/ncurses/ncurses.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 05:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233610#M895359</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-30T05:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: using Curses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233611#M895360</link>
      <description>Can't mail you a program from work but if you need to, I can mail you one from home later.  However, is is actually very simple.&lt;BR /&gt; &lt;BR /&gt;You just need to include the curses headers.  Set up a screen with "initscr()".  You probably want to follow that up with "cbreak()" and "noecho()" and you're away.  By default, the window you write to is stdscr and you can start playing with all the nice little (n)curses functions.  Most of which don't even take an argument so are very simple.  When finished, you link your program against "curses" and, on older systems tcap/terminfo as well.&lt;BR /&gt; &lt;BR /&gt;I miss curses programming as there isn't much call for it these days but it was fun.  So much fun I once did a "curses.sh" providing most curses functionality for shell scripters but sadly no longer have the code :(</description>
      <pubDate>Tue, 30 Mar 2004 06:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233611#M895360</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-30T06:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: using Curses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233612#M895361</link>
      <description>If you want a dumb example :&lt;BR /&gt;&lt;BR /&gt;#include &lt;PANEL.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{ WINDOW *my_wins[3];&lt;BR /&gt; PANEL  *my_panels[3];&lt;BR /&gt; int lines = 10, cols = 40, y = 2, x = 4, i;&lt;BR /&gt;&lt;BR /&gt; initscr();&lt;BR /&gt; cbreak();&lt;BR /&gt; noecho();&lt;BR /&gt;&lt;BR /&gt; /* Create windows for the panels */&lt;BR /&gt; my_wins[0] = newwin(lines, cols, y, x);&lt;BR /&gt; my_wins[1] = newwin(lines, cols, y + 1, x + 5);&lt;BR /&gt; my_wins[2] = newwin(lines, cols, y + 2, x + 10);&lt;BR /&gt;&lt;BR /&gt; /* &lt;BR /&gt;  * Create borders around the windows so that you can see the effect&lt;BR /&gt;  * of panels&lt;BR /&gt;  */&lt;BR /&gt; for(i = 0; i &amp;lt; 3; +++i)&lt;BR /&gt;  box(my_wins[i], 0, 0);&lt;BR /&gt;&lt;BR /&gt; /* Attach a panel to each window */  /* Order is bottom up */&lt;BR /&gt; my_panels[0] = new_panel(my_wins[0]);  /* Push 0, order: stdscr-0 */&lt;BR /&gt; my_panels[1] = new_panel(my_wins[1]);  /* Push 1, order: stdscr-0-1 */&lt;BR /&gt; my_panels[2] = new_panel(my_wins[2]);  /* Push 2, order: stdscr-0-1-2 */&lt;BR /&gt;&lt;BR /&gt; /* Update the stacking order. 2nd panel will be on top */&lt;BR /&gt; update_panels();&lt;BR /&gt;&lt;BR /&gt; /* Show it on the screen */&lt;BR /&gt; doupdate();&lt;BR /&gt; &lt;BR /&gt; getch();&lt;BR /&gt; endwin();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PANEL.H&gt;</description>
      <pubDate>Tue, 30 Mar 2004 06:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-curses/m-p/3233612#M895361</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-30T06:14:31Z</dc:date>
    </item>
  </channel>
</rss>

