void    edit();
void    next_file();
void    prev_file();
void    init_option();
void    toggle_option();
void    scan_option();
void    forward();
void    backward();
void    repaint();
void    jump_forw();
void    jump_back();
void    jump_percent();
void    jump_loc();
void    init_mark();
void    setmark();
void    gomark();
void    search();
int     ch_seek();
int     ch_end_seek();
LONG    ch_length();
LONG    ch_tell();
int     ch_forw_get();
int     ch_back_get();
void    ch_init();
LONG    position();
void    add_forw_pos();
void    add_back_pos();
void    pos_clear();
int     onscreen();
LONG    forw_line();
LONG    back_line();
void    put_line();
int     control_char(UBYTE);
int     carat_char();
void    flush();
void    dropout();
void    putc(int);
void    puts(char *);
void    error(char *,int);
int     error_width();
void    raw_mode();
void    get_term();
void    init();
void    deinit();
void    home();
void    add_line();
void    lower_left();
void    bell();
void    clear();
void    clear_eol();
void    so_enter();
void    so_exit();
void    ul_enter();
void    ul_exit();
void    backspace();
void    putbs();
char    *eq_message();
char    *pr_string();
void    prewind();
int     pappend();
LONG    forw_raw_line();
LONG    back_raw_line();
void    lsystem();
void    help();
void    commands();

void    cleanup(char *,int);
void    sprintf();
void    printf();
char    *strint(int);
void    ch_memdump();
void    doopts(int,char **);

void    setbar(int);
void    usebar();

#define open_getc()     ttopen()
#define vbell()         bell()
