X-Git-Url: http://git.madism.org/?p=apps%2Fmadtty.git;a=blobdiff_plain;f=rote.h;fp=rote.h;h=76547843b3fe36a35e9c2aa18c54646c21f3aa28;hp=62846d639d8e3bea1b2aea2d74bdf25b609acf25;hb=1748b4c1fc413781b4e6cf1a66ed0c1c6980be5d;hpb=7f23e2cf7b485ba8c4a66ccc2ee7fc4ee8172109 diff --git a/rote.h b/rote.h index 62846d6..7654784 100644 --- a/rote.h +++ b/rote.h @@ -29,7 +29,11 @@ Copyright (c) 2004 Bruno T. C. de Oliveira #ifndef btco_ROTE_rote_h #define btco_ROTE_rote_h +#ifdef USE_NCURSES #include +#else +#include +#endif #include #include #include @@ -126,6 +130,7 @@ typedef struct RoteTerm_ { RoteTermPrivate *pd; /* private state data */ + bool insert; /* insert or replace mode */ /* --- dirtiness flags: the following flags will be raised when the * corresponding items are modified. They can only be unset by YOU * (when, for example, you redraw the term or something) --- */ @@ -200,6 +205,7 @@ void rote_vt_write(RoteTerm *rt, const char *data, int length); */ void rote_vt_inject(RoteTerm *rt, const char *data, int length); +#ifdef USE_NCURSES /* Paints the virtual terminal screen on the given window, putting * the top-left corner at the given position. The cur_set_attr * function must set the curses attributes given a Rote attribute @@ -221,6 +227,7 @@ void rote_vt_inject(RoteTerm *rt, const char *data, int length); void rote_vt_draw(RoteTerm *rt, WINDOW *win, int startrow, int startcol, void (*cur_set_attr)(WINDOW *win, unsigned char attr)); +#endif /* Indicates to the terminal that the given key has been pressed. * This will cause the terminal to rote_vt_write() the appropriate * escape sequence for that key (that is, the escape sequence