On Wed, Jan 19, 2011 at 9:27 PM, Ross Mohn <rpm...@waxandwane.org> wrote:
>  What will struct term_t look like?
> -Ross

It currently looks like that:

typedef struct {
    int pid;
    int io;               // master pty
    int row;              // rows nb
    int col;              // cols nb
    term_line_t* line;    // screen line memory
    term_line_t* alt;     // idem, for alternate screen
    term_line_t* scroll;  // scrollback buffer
    term_cursor_t c;      // cursor
    term_cursor_t cs;     // saved cursor
    int top;              // top    scroll limit
    int bot;              // bottom scroll limit
    int mode;             // terminal mode flags
    char title[ESC_TITLE_SIZ];
    int titlelen;

    int esc;              // escape state flags (parsing state)
    term_csi_t csi;
} term_t;

Reply via email to