src/commands/mined/mined1.c File Reference

#include "mined.h"
#include <signal.h>
#include <termios.h>
#include <limits.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <varargs.h>

Go to the source code of this file.

Defines

#define UNDEF   _POSIX_VDISABLE

Functions

void FS ()
void VI ()
int WT ()
void XWT ()
void SH ()
LINEproceed (LINE *line, int count)
int bottom_line (FLAG revfl, char *s1, char *s2, char *inbuf, FLAG statfl)
int count_chars (LINE *line)
void move (int new_x, char *new_address, int new_y)
int find_x (LINE *line, char *address)
char * find_address (LINE *line, int x_coord, int *old_x)
int length_of (char *string)
void copy_string (char *to, char *from)
void reset (LINE *head_line, int screen_y)
void set_cursor (int nx, int ny)
void open_device ()
int getchar ()
void display (int x_coord, int y_coord, LINE *line, int count)
int write_char (int fd, char c)
int writeline (int fd, char *text)
void put_line (LINE *line, int offset, FLAG clear_line)
int flush_buffer (int fd)
void bad_write (int fd)
void catch (int sig)
void abort_mined ()
void raw_mode (FLAG state)
void panic (char *message)
char * alloc (int bytes)
void free_space (char *p)
void initialize ()
char * basename (char *path)
void load_file (char *file)
int get_line (int fd, char *buffer)
LINEinstall_line (char *buffer, int length)
void main (int argc, argv)
void RD ()
void I ()
void XT ()
void(*)() escfunc (c)

Variables

int errno
int ymax = YMAX
int screenmax = SCREENMAX
void(* key_map [256])()
int nlines
LINEheader
LINEtail
LINEcur_line
LINEtop_line
LINEbot_line
char * cur_text
int last_y
char screen [SCREEN_SIZE]
int x
int y
FLAG modified = FALSE
FLAG stat_visible
FLAG writable
FLAG loading
FLAG quit = FALSE
FLAG rpipe = FALSE
int input_fd = 0
int out_count
char file_name [LINE_LEN]
char text_buffer [MAX_CHARS]
char * enter_string = "\033[H\033[J"
char * pos_string = "\033[%d;%dH"
char * rev_scroll = "\033M"
char * rev_video = "\033[7m"
char * normal_video = "\033[m"
char * blank_line = "\033[K"
FLAG yank_status = NOT_VALID
char yank_file [] = "/tmp/mined.XXXXXX"
long chars_saved
register long count
char * file
int lines
FLAG writefl
FLAG changed
fmt
int * result
FLAG clearfl


Define Documentation

#define UNDEF   _POSIX_VDISABLE

Definition at line 1104 of file mined1.c.


Function Documentation

void abort_mined (  ) 

Definition at line 1081 of file mined1.c.

char* alloc ( int  bytes  ) 

Definition at line 1169 of file mined1.c.

void bad_write ( int  fd  ) 

Definition at line 1054 of file mined1.c.

char* basename ( char *  path  ) 

Definition at line 1280 of file mined1.c.

int bottom_line ( FLAG  revfl,
char *  s1,
char *  s2,
char *  inbuf,
FLAG  statfl 
)

Definition at line 593 of file mined1.c.

void catch ( int  sig  ) 

Definition at line 1070 of file mined1.c.

void copy_string ( char *  to,
char *  from 
)

Definition at line 819 of file mined1.c.

int count_chars ( LINE line  ) 

Definition at line 654 of file mined1.c.

void display ( int  x_coord,
int  y_coord,
LINE line,
int  count 
)

Definition at line 903 of file mined1.c.

void(*)() escfunc ( c   ) 

char* find_address ( LINE line,
int  x_coord,
int *  old_x 
)

Definition at line 775 of file mined1.c.

int find_x ( LINE line,
char *  address 
)

Definition at line 755 of file mined1.c.

int flush_buffer ( int  fd  ) 

Definition at line 1031 of file mined1.c.

void free_space ( char *  p  ) 

Definition at line 1183 of file mined1.c.

void FS (  ) 

Definition at line 428 of file mined1.c.

int get_line ( int  fd,
char *  buffer 
)

Definition at line 1369 of file mined1.c.

int getchar ( void   ) 

Definition at line 883 of file mined1.c.

void I (  ) 

Definition at line 1519 of file mined1.c.

void initialize ( void   ) 

Definition at line 1260 of file mined1.c.

LINE* install_line ( char *  buffer,
int  length 
)

Definition at line 1411 of file mined1.c.

int length_of ( char *  string  ) 

Definition at line 803 of file mined1.c.

void load_file ( char *  file  ) 

Definition at line 1305 of file mined1.c.

void main ( int argc  ,
argv   
)

Definition at line 1424 of file mined1.c.

void move ( int  new_x,
char *  new_address,
int  new_y 
)

Definition at line 689 of file mined1.c.

void open_device (  ) 

Definition at line 873 of file mined1.c.

void panic ( char *  message  ) 

Definition at line 1143 of file mined1.c.

LINE* proceed ( LINE line,
int  count 
)

Definition at line 575 of file mined1.c.

void put_line ( LINE line,
int  offset,
FLAG  clear_line 
)

Definition at line 967 of file mined1.c.

void raw_mode ( FLAG  state  ) 

Definition at line 1110 of file mined1.c.

void RD (  ) 

Definition at line 1493 of file mined1.c.

void reset ( LINE head_line,
int  screen_y 
)

Definition at line 832 of file mined1.c.

void set_cursor ( int  nx,
int  ny 
)

Definition at line 855 of file mined1.c.

void SH (  ) 

Definition at line 529 of file mined1.c.

void VI (  ) 

Definition at line 437 of file mined1.c.

int write_char ( int  fd,
char  c 
)

Definition at line 938 of file mined1.c.

int writeline ( int  fd,
char *  text 
)

Definition at line 951 of file mined1.c.

int WT (  ) 

Definition at line 461 of file mined1.c.

void XT (  ) 

Definition at line 1526 of file mined1.c.

void XWT (  ) 

Definition at line 519 of file mined1.c.


Variable Documentation

char* blank_line = "\033[K"

Definition at line 1246 of file mined1.c.

Definition at line 1220 of file mined1.c.

Definition at line 1710 of file mined1.c.

Definition at line 1254 of file mined1.c.

Definition at line 1860 of file mined1.c.

register long count

Definition at line 1706 of file mined1.c.

Definition at line 1218 of file mined1.c.

char* cur_text

Definition at line 1221 of file mined1.c.

char* enter_string = "\033[H\033[J"

Definition at line 1241 of file mined1.c.

int errno

Definition at line 70 of file rcp.c.

* file

Definition at line 1708 of file mined1.c.

char file_name[LINE_LEN]

Definition at line 1234 of file mined1.c.

* fmt

Definition at line 1750 of file mined1.c.

Definition at line 1216 of file mined1.c.

int input_fd = 0

Definition at line 1232 of file mined1.c.

void(* key_map[256])()

Initial value:

 {       
    MA, BL, MP, YA, SD, RD, MN, IF, DPC, S, S, DT, LR, S, DNW,LIB,
    DPW, WB, GR, SH, DLN, SU, VI, XWT, XT, PT, EL, ESC, I, GOTO,
                 HIGH, LOW,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, DCC,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
    S, S, S, S, S, S, S, S, S, S, S, S, S, S, S, S,
}

int last_y

Definition at line 1222 of file mined1.c.

int lines

Definition at line 1709 of file mined1.c.

Definition at line 1229 of file mined1.c.

FLAG modified = FALSE

Definition at line 1226 of file mined1.c.

int nlines

Definition at line 1215 of file mined1.c.

char* normal_video = "\033[m"

Definition at line 1245 of file mined1.c.

int out_count

Definition at line 1233 of file mined1.c.

char* pos_string = "\033[%d;%dH"

Definition at line 1242 of file mined1.c.

FLAG quit = FALSE

Definition at line 1230 of file mined1.c.

int* result

Definition at line 1795 of file mined1.c.

char* rev_scroll = "\033M"

Definition at line 1243 of file mined1.c.

char* rev_video = "\033[7m"

Definition at line 1244 of file mined1.c.

FLAG rpipe = FALSE

Definition at line 1231 of file mined1.c.

char screen[SCREEN_SIZE]

Definition at line 1223 of file mined1.c.

int screenmax = SCREENMAX

Definition at line 422 of file mined1.c.

Definition at line 1227 of file mined1.c.

LINE* tail

Definition at line 1217 of file mined1.c.

char text_buffer[MAX_CHARS]

Definition at line 1235 of file mined1.c.

Definition at line 1219 of file mined1.c.

FLAG writable

Definition at line 1228 of file mined1.c.

Definition at line 1710 of file mined1.c.

int x

Definition at line 1225 of file mined1.c.

int y

Definition at line 1225 of file mined1.c.

char yank_file[] = "/tmp/mined.XXXXXX"

Definition at line 1253 of file mined1.c.

FLAG yank_status = NOT_VALID

Definition at line 1252 of file mined1.c.

int ymax = YMAX

Definition at line 421 of file mined1.c.


Generated on Tue Mar 9 04:36:35 2010 for Minix by  doxygen 1.5.8