screen.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <signal.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <curses.h>
#include "screen.h"

Include dependency graph for screen.c:

Go to the source code of this file.

Functions

 _PROTOTYPE (void gotsig,(int sig))
 _PROTOTYPE (static char *delword,(WINDOW *w))
void gotsig (int sig)
int ScreenInit ()
void ScreenMsg (char *msg)
void ScreenWho (char *user, char *host)
void ScreenEdit (lcc, rcc)
void ScreenPut (char *data, int len, int win)
static char * delword (WINDOW *w)
void ScreenEnd ()

Variables

struct {
   char *   f_name
   FILE *   f_fp
   int   f_type
   char *   word
   int   type
   int   val
   char *   name
   CMD   code
   void(*   fn )()
   ARGT   argt
   char *   name
   char *   nm
   char   type
   char   flags
   char *   value
   const char *   name
   signed char   fat_bits
   int   tracks
   unsigned short   heads
   unsigned short   sectors
   device_t *   dev
   int   nr_partitions
   int   free_regions
   int   used_regions
   int   sectors
   int   nr_regions
   int   biosdrive
   region_t   regions [NR_REGIONS]
   int   this_month
   int   feb
   int   sept
   int   days_in_month
   int   dow_first
   int   o_file
   int   o_field
   WINDOW *   win
   char   erase
   char   kill
   char   werase
   unsigned   baudr
   int   speedcode
   u16_t   vendor
   u16_t   device
window [2]
static char line [80+1]
int ScreenDone = 0
static WINDOWdwin


Function Documentation

_PROTOTYPE static char *  delword,
(WINDOW *w) 
 

_PROTOTYPE void  gotsig,
(int sig
 

static char* delword WINDOW w  )  [static]
 

Definition at line 179 of file screen.c.

References c, getyx, i, mvwinch(), p, r, waddch(), and wmove().

Referenced by ScreenPut().

void gotsig int  sig  ) 
 

Definition at line 30 of file screen.c.

References signal().

void ScreenEdit lcc  ,
rcc 
 

Definition at line 106 of file screen.c.

References LOCALWIN, and REMOTEWIN.

Referenced by DoTalk().

void ScreenEnd  ) 
 

Definition at line 203 of file screen.c.

References endwin(), LINES, move, and refresh.

Referenced by main().

int ScreenInit  ) 
 

Definition at line 37 of file screen.c.

References cbreak, clear, COLS, dwin, fprintf(), i, initscr(), LINES, LOCALWIN, newwin(), noecho, NULL, refresh, REMOTEWIN, scrollok, SIGHUP, SIGINT, signal(), SIGPIPE, SIGQUIT, stderr, TRUE, waddch(), wclear(), win, and wrefresh().

Referenced by main().

void ScreenMsg char *  msg  ) 
 

Definition at line 74 of file screen.c.

References LOCALWIN, wclrtoeol(), werase, wmove(), wprintw(), and wrefresh().

Referenced by DoTalk(), TalkChk(), and TalkInit().

void ScreenPut char *  data,
int  len,
int  win
 

Definition at line 118 of file screen.c.

References c, COLS, delword(), erase, getyx, isprint, kill, LOCALWIN, putchar, r, REMOTEWIN, touchwin(), waddch(), wclrtoeol(), werase, wmove(), wprintw(), and wrefresh().

Referenced by DoTalk().

void ScreenWho char *  user,
char *  host
 

Definition at line 92 of file screen.c.

References COLS, dwin, strlen(), wmove(), wprintw(), and wrefresh().

Referenced by DoTalk().


Variable Documentation

WINDOW* dwin [static]
 

Definition at line 28 of file screen.c.

Referenced by ScreenInit(), and ScreenWho().

char erase
 

Definition at line 19 of file screen.c.

char kill
 

Definition at line 20 of file screen.c.

char line[80+1] [static]
 

Definition at line 24 of file screen.c.

int ScreenDone = 0
 

Definition at line 26 of file screen.c.

Referenced by DoTalk(), TalkInit(), and TalkTrans().

char werase
 

Definition at line 21 of file screen.c.

Referenced by ScreenMsg(), ScreenPut(), and wclear().

WINDOW* win
 

Definition at line 18 of file screen.c.

Referenced by dellin(), DoTalk(), efun(), inslin(), makenew(), mvwprintw(), mvwscanw(), newwin(), ScreenInit(), stateval(), subwin(), wprintw(), and wscanw().

struct { ... } window[2]
 

Referenced by give_prompt().


Generated on Fri Apr 14 23:08:03 2006 for minix by  doxygen 1.4.6