Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>swap_trapcbreakon</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
swap_trapcbreakon

Usage

   #include <swap.h>
   void swap_trapcbreakoff(void);
   void swap_trapcbreakon(void);


Description

   These functions allow the control-c trapping carried out by Swap to be
   turned on or off. When on, control-c and control-break are trapped by
   Swap and ignored. The default is on.

   If you want the spawned program to react to control-c or control-break
   you should install a control-c handler yourself using the control_c
   functions and turn Swap s handler off by calling the function
   swap_trapcbreakoff().

See Also

   spawn, spawn, system system
   swap_window

Usage

   #include <swap.h>
   void swap_window(int col, int lin, int x, int y);


Description

   This function specifies a screen area (window) that Swap is to use to
   display output from the spawned  program. This facility only works for
   output sent via stdout or stderr. The parameters are:


   col              The left column of the window

   row              The top row of the window

   x                The width of the window in columns

   y                The depth of the window in rows


   Output to the window is scrolled and wrapped appropriately. It can be
   suspended by a call to swap_windowoff().


See Also

   spawn, system



See Also: spawn system

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson