#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 () |
| LINE * | proceed (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) |
| LINE * | install_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 |
| LINE * | header |
| LINE * | tail |
| LINE * | cur_line |
| LINE * | top_line |
| LINE * | bot_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 |
| void display | ( | int | x_coord, | |
| int | y_coord, | |||
| LINE * | line, | |||
| int | count | |||
| ) |
| void(*)() escfunc | ( | c | ) |
| char* find_address | ( | LINE * | line, | |
| int | x_coord, | |||
| int * | old_x | |||
| ) |
| char* blank_line = "\033[K" |
| long chars_saved |
| char* enter_string = "\033[H\033[J" |
| 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,
}
| char* normal_video = "\033[m" |
| char* pos_string = "\033[%d;%dH" |
| char* rev_scroll = "\033M" |
| char text_buffer[MAX_CHARS] |
| FLAG yank_status = NOT_VALID |
1.5.8