tin  2.6.1
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.6.1.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.


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


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)


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

Macro Definition Documentation


#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 642 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 527 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 542 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 585 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  )

◆ signal_name()

static const char * signal_name ( int  code)

Definition at line 227 of file signal.c.

References ARRAY_SIZE, code, name, and signal_list.

Referenced by signal_handler().

Variable Documentation

◆ code

int code

Definition at line 116 of file signal.c.

Referenced by gnksa_do_check_from(), line_is_tagged(), set_signal_handlers(), and signal_name().

◆ 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().


◆ sigdisp

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

Definition at line 174 of file signal.c.

Referenced by set_signal_catcher(), and set_signal_handlers().

◆ signal_context


const struct { ... } signal_list[]

Referenced by set_signal_handlers(), and signal_name().