tio.c File Reference

#include "config.h"
#include "vi.h"
#include "ctype.h"

Include dependency graph for tio.c:

Go to the source code of this file.

Data Structures

struct  _map

Typedefs

typedef _map MAP

Functions

int vgets (char prompt, char *buf, int bsize)
static int showmsg ()
void endmsgs ()
void msg (char *fmt, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6, long arg7)
void exrefresh ()
void beep ()
void execmap (int rawlen, char *cookedstr, int visual)
static int fillkeybuf (int when, int timeout)
static int countmatch (int when)
static void expandabbr (char *word, int wlen)
int getkey (int when)
int getabkey (int when, char *word, int wlen)
void mapkey (char *rawin, char *cooked, short when, char *name)
char * printable (char *str)
void dumpkey (int when, int abbr)
static safequote (char *str)
 savemaps (int fd, int abbr)

Variables

static int manymsgs
static char pmsg [80]
static char keybuf [KEYBUFSIZE]
static int cend
static int user
static int next
static MAPmatch
static MAPmaps
static MAPabbrs


Typedef Documentation

typedef struct _map MAP
 


Function Documentation

void beep  ) 
 

Definition at line 323 of file tio.c.

Referenced by adjmove(), cmd_errlist(), input(), out_char(), and trapint().

static int countmatch int  when  )  [static]
 

Definition at line 555 of file tio.c.

References count, map, and maps.

Referenced by getabkey().

void dumpkey int  when,
int  abbr
 

Definition at line 867 of file tio.c.

References abbrs, _map::flags, _map::len, maps, and _map::next.

Referenced by cmd_map().

void endmsgs  ) 
 

Definition at line 216 of file tio.c.

References addch, and showmsg().

Referenced by main().

void execmap int  rawlen,
char *  cookedstr,
int  visual
 

Definition at line 345 of file tio.c.

References ctrl, i, KEYBUFSIZE, and strlen().

Referenced by expandabbr(), getabkey(), and v_at().

static void expandabbr char *  word,
int  wlen
[static]
 

Definition at line 608 of file tio.c.

References abbrs, ctrl, execmap(), FALSE, isalnum, keybuf, _map::len, _map::next, next, _map::rawin, and strncmp().

Referenced by getabkey().

void exrefresh  ) 
 

Definition at line 269 of file tio.c.

References exwrote, kbuf, o_exrefresh, refresh, stdscr, and TRUE.

Referenced by cmd_color(), do_digraph(), msg(), and v_1ex().

static int fillkeybuf int  when,
int  timeout
[static]
 

Definition at line 434 of file tio.c.

References addstr, clrtoeol, COLS, cursor, do_CI, do_CR, do_CV, do_CX, endwin(), exit(), has_CQ, idx2col(), keybuf, leftcol, LINES, markline, move, nlines, o_ruler, o_smd, oldnlines, pfetch(), ptext, qaddstr(), redraw(), refresh, sprintf(), standend, standout, tmpabort(), topline, TRUE, ttyread(), user, WHEN_CHAR, WHEN_CUT, WHEN_EX, WHEN_MARK, WHEN_REP1, WHEN_VICMD, WHEN_VIINP, WHEN_VIREP, and WHENMASK.

Referenced by getabkey().

int getabkey int  when,
char *  word,
int  wlen
 

Definition at line 659 of file tio.c.

References countmatch(), ERASEKEY, execmap(), expandabbr(), FALSE, fillkeybuf(), keybuf, next, o_keytime, o_more, o_remap, qaddstr(), refresh, showmsg(), user, WHEN_EX, WHEN_INMV, WHEN_MSG, WHEN_VIINP, and WHEN_VIREP.

Referenced by getkey(), and input().

int getkey int  when  ) 
 

Definition at line 649 of file tio.c.

References getabkey().

Referenced by input(), m_paragraph(), m_z(), msg(), v_1ex(), v_increment(), and vgets().

void mapkey char *  rawin,
char *  cooked,
short  when,
char *  name
 

Definition at line 735 of file tio.c.

References abbrs, _map::flags, free, head, malloc(), maps, _map::next, _map::rawin, strcmp, strcpy(), strlen(), strncmp(), WHEN_EX, WHEN_INMV, WHEN_POPUP, WHEN_VICMD, WHEN_VIINP, and WHEN_VIREP.

Referenced by main().

void msg char *  fmt,
long  arg1,
long  arg2,
long  arg3,
long  arg4,
long  arg5,
long  arg6,
long  arg7
 

Definition at line 239 of file tio.c.

References addch, exrefresh(), getkey(), MODE_VI, qaddstr(), sprintf(), TRUE, and WHEN_MSG.

char* printable char *  str  ) 
 

Definition at line 829 of file tio.c.

References BLK::c, tmpblk, and UCHAR.

static safequote char *  str  )  [static]
 

Definition at line 927 of file tio.c.

References BLK::c, ctrl, strlen(), and tmpblk.

savemaps int  fd,
int  abbr
 

Definition at line 952 of file tio.c.

References abbrs, _map::label, _map::len, maps, and _map::next.

Referenced by cmd_mkexrc().

static int showmsg  )  [static]
 

Definition at line 193 of file tio.c.

References clrtoeol, FALSE, LINES, move, qaddch, qaddstr(), standend, standout, and TRUE.

Referenced by AreWeIn(), doCWD(), endmsgs(), and getabkey().

int vgets char  prompt,
char *  buf,
int  bsize
 

Definition at line 19 of file tio.c.

References addch, clrtoeol, getkey(), LINES, MODE_EX, move, refresh, and tab.

Referenced by cmd_append(), ex(), and v_filter().


Variable Documentation

MAP* abbrs [static]
 

Definition at line 317 of file tio.c.

Referenced by dumpkey(), expandabbr(), mapkey(), and savemaps().

int cend [static]
 

Definition at line 311 of file tio.c.

char keybuf[KEYBUFSIZE] [static]
 

Definition at line 310 of file tio.c.

Referenced by expandabbr(), fillkeybuf(), and getabkey().

int manymsgs [static]
 

Definition at line 189 of file tio.c.

MAP* maps [static]
 

Definition at line 315 of file tio.c.

Referenced by countmatch(), dumpkey(), mapkey(), and savemaps().

MAP* match [static]
 

Definition at line 314 of file tio.c.

int next [static]
 

Definition at line 313 of file tio.c.

char pmsg[80] [static]
 

Definition at line 190 of file tio.c.

int user [static]
 

Definition at line 312 of file tio.c.

Referenced by doall(), DOuser(), fillkeybuf(), finduser(), getabkey(), main(), preserve(), proxy(), Recover_Blocks(), settty(), and subvpath().


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