/* use with QMC.def */

/************************************************************************
 *                                                                      *
 *                      copyright Richard Bornat 1981                   *
 *                                                                      *
 ************************************************************************/

/* #define TER_ROWS 24
 * #define TER_COLS 80
 */

/* the txt terminal structure */
struct TERMINAL txt_ter =
 {  /* nrows, ncols - size of the screen */
    24, 80,

    /* up, left, c_MODIFY, c_CONTROL, c_BLOB - single characters */
    { 0, 0, 0, 004, 005 },          /* onechar */
        /* onechar */

    /* rollup, pushdown, pushup, pulldown, pullup STRINGS */
    /* and hardscroll boolean */
    { "\n", 0, 0, 0, 0, false },
        /* scrseq */

    /* scrollup, scrolldown PROCEDURES */
    scr0_up, scr0_down,

    /* splitdown, splitup, joindown, joinup STRINGS */
    { 0, 0, 0, 0 },              /* splitseq */
        /* splitseq */

    /* split_row, join_row PROCEDURES */
    split0, join0,

    /* clearscreen, *clearhead, *cleartail STRINGS */
    { "\014", 0, 0 },
        /* clrseq */

    /* clr_screen, clr_head, clr_tail PROCEDURES */
    clrs1, clrh0, clrt0,

    /* inspace, makespace, rubout, erase STRINGS */
    { 0, 0, 0, 0 },
        /* charseq */

    /* ins_char, del_char PROCEDURES */
    insc0, delc0,

    /* bright, normal STRINGS */
    { 0, 0 },
        /* vidseq */

    /* in_two, out_two PROCEDURES */
    no_char, no_char,

    /* move PROCEDURE and nmove integer */
    qmc_move, 3,

    /* setup, special, pad PROCEDURES */
    no_int, no_int, no_int
 };
