Re: [dev] [st] Separating the wheat (terminal emulation) from the chaff (X)

From: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
Date: Thu, 20 Jan 2011 15:49:16 +0100

On Wed, Jan 19, 2011 at 9:27 PM, Ross Mohn <rpmohn_AT_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;
Received on Thu Jan 20 2011 - 15:49:16 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 20 2011 - 16:00:04 CET