<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'about ncurses and screen dumping' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'about ncurses and screen dumping' posted on the 'LINUX programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 04:06:51 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 04:06:51 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>about ncurses and screen dumping</title>
      <link>http://www.programmersheaven.com/mb/Linux/202896/202896/about-ncurses-and-screen-dumping/</link>
      <description>Hi&lt;br /&gt;
I have a code like below :&lt;br /&gt;
"ch" is type of char and 113 is ESC. MessageBox function simply displays a message box asking the user to continue the process.Messagebox returns 1 if the answer is "yes" and 0 if the answer is "no". But I want to dump the screen before displaying the message box and redraw it if the answer is no. But it doesn't redraw the screen!...Please check..&lt;br /&gt;
&lt;br /&gt;
*screen_dump="/tmp/screen.tmp";&lt;br /&gt;
&lt;br /&gt;
switch(ch)&lt;br /&gt;
  {&lt;br /&gt;
   case 113:&lt;br /&gt;
    {&lt;br /&gt;
    scr_dump(screen_dump);&lt;br /&gt;
    ans=MessageBox();&lt;br /&gt;
    if (ans)&lt;br /&gt;
     { &lt;br /&gt;
       system("/bin/rm -f /tmp/screen.tmp");&lt;br /&gt;
       goto dbm_exit;&lt;br /&gt;
     }&lt;br /&gt;
     else&lt;br /&gt;
     {&lt;br /&gt;
       scr_restore(screen_dump);&lt;br /&gt;
       break;&lt;br /&gt;
     } &lt;br /&gt;
    }&lt;br /&gt;
    break;&lt;br /&gt;
   case 104:&lt;br /&gt;
    action_win(14,body_sub);&lt;br /&gt;
    break;  &lt;br /&gt;
  }    &lt;br /&gt;
&lt;br /&gt;
Thanks....&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/202896/202896/about-ncurses-and-screen-dumping/</guid>
      <pubDate>Wed, 23 Jul 2003 07:45:42 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
  </channel>
</rss>