X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=madtty%2Froteprivate.h;h=628a99322f56b5097a5275c8d690d7486c4b54bf;hb=d0e48d929c19d39c4a13e57e0f8a8dd6194d6dde;hp=90a490de7ea375e9cf40b5955a34521e827b322f;hpb=fcbd5f6835f65055d0ac14d3a2da3afb39634fd3;p=apps%2Fmadtty.git diff --git a/madtty/roteprivate.h b/madtty/roteprivate.h index 90a490d..628a993 100644 --- a/madtty/roteprivate.h +++ b/madtty/roteprivate.h @@ -27,26 +27,25 @@ /* Terminal private data */ struct RoteTermPrivate_ { - bool escaped; /* whether we are currently reading an - * escape sequence */ + bool escaped; /* whether we are currently reading an + * escape sequence */ - bool graphmode; /* whether terminal is in graphical - * character mode or not */ + bool graphmode; /* whether terminal is in graphical + * character mode or not */ - int scrolltop, scrollbottom; /* current scrolling region of terminal */ - int saved_x, saved_y; /* saved cursor position */ + int scrolltop, scrollbottom; /* current scrolling region of terminal */ + int saved_x, saved_y; /* saved cursor position */ - char esbuf[ESEQ_BUF_SIZE]; /* 0-terminated string. Does NOT include - * the initial escape (\x1B) character. */ - int esbuf_len; /* length of buffer. The following property - * is always kept: esbuf[esbuf_len] == '\0' */ - - int pty; /* file descriptor for the pty attached to - * this terminal. -1 if none. */ - - /* custom escape sequence handler */ - rote_es_handler_t handler; + char esbuf[ESEQ_BUF_SIZE]; /* 0-terminated string. Does NOT include + * the initial escape (\x1B) character. */ + int esbuf_len; /* length of buffer. The following property + * is always kept: esbuf[esbuf_len] == '\0' */ }; -#endif +/* Interprets a CSI escape sequence stored in rt->pd->esbuf, + * changing rt to reflect the effect of the sequence. This function + * will not change rt->pd->esbuf, rt->pd->escaped or other escape-sequence + * related fields in it */ +void rote_es_interpret_csi(RoteTerm *rt); +#endif