tin  2.4.5
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

signal.c File Reference
#include "tin.h"
#include "tcurses.h"
#include "trace.h"
#include "version.h"
Include dependency graph for signal.c:

Go to the source code of this file.

Macros

#define RESTORE_HANDLER(x, y)   signal(x, y)
 

Functions

static const char * signal_name (int code)
 
static void signal_handler (SIG_ARGS)
 
void allow_resize (t_bool allow)
 
void handle_resize (t_bool repaint)
 
static void signal_handler (int sig)
 
void set_signal_catcher (int flag)
 
void set_signal_handlers (void)
 
t_bool set_win_size (int *num_lines, int *num_cols)
 
void set_noteslines (int num_lines)
 

Variables

int signal_context = cMain
 
int input_context = cNone
 
int need_resize = cNo
 
int NOTESLINES
 
struct {
   int   code
 
   const char *   name
 
signal_list []
 
void(*)(SIG_ARGS) sigdisp (signum, func)
 
void(* func )(SIG_ARGS)
 

Macro Definition Documentation

◆ RESTORE_HANDLER

#define RESTORE_HANDLER (   x,
 
)    signal(x, y)

Function Documentation

◆ allow_resize()

void allow_resize ( t_bool  allow)

Definition at line 203 of file signal.c.

References signal_handler().

Referenced by ReadCh().

◆ handle_resize()

◆ set_noteslines()

void set_noteslines ( int  num_lines)

Definition at line 639 of file signal.c.

References t_config::beginner_level, INDEX_TOP, MINI_HELP_LINES, NOTESLINES, and tinrc.

Referenced by config_page(), set_win_size(), and toggle_mini_help().

◆ set_signal_catcher()

void set_signal_catcher ( int  flag)

Definition at line 526 of file signal.c.

References sigdisp, and signal_handler().

Referenced by feed_articles(), invoke_cmd(), and pipe_part().

◆ set_signal_handlers()

void set_signal_handlers ( void  )

Definition at line 541 of file signal.c.

References ARRAY_SIZE, code, RETSIGTYPE, sigdisp, signal_handler(), signal_list, and TRUE.

Referenced by main().

◆ set_win_size()

t_bool set_win_size ( int *  num_lines,
int *  num_cols 
)

Definition at line 582 of file signal.c.

References FALSE, init_screen_array(), set_noteslines(), and TRUE.

Referenced by handle_resize(), and setup_screen().

◆ signal_handler() [1/2]

◆ signal_handler() [2/2]

static void signal_handler ( SIG_ARGS  )
static

◆ signal_name()

static const char * signal_name ( int  code)
static

Definition at line 227 of file signal.c.

References ARRAY_SIZE, code, name, and signal_list.

Referenced by signal_handler().

Variable Documentation

◆ code

◆ func

◆ input_context

int input_context = cNone

Definition at line 106 of file signal.c.

Referenced by handle_resize(), prompt_continue(), prompt_slk_response(), prompt_yn(), and tin_getline().

◆ name

◆ need_resize

int need_resize = cNo

Definition at line 107 of file signal.c.

Referenced by invoke_cmd(), read_overview(), ReadCh(), and signal_handler().

◆ NOTESLINES

◆ sigdisp

void(*)(SIG_ARGS) sigdisp(signum, func) ( signum  ,
func   
)

Definition at line 174 of file signal.c.

Referenced by set_signal_catcher(), and set_signal_handlers().

◆ signal_context

◆ 

const { ... } signal_list[]

Referenced by set_signal_handlers(), and signal_name().