Changes in owl.h [428834d:18e28a4]
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r428834d r18e28a4 52 52 #include <termios.h> 53 53 #include <libfaim/aim.h> 54 #include <wchar.h>55 54 #include "config.h" 56 #include "glib.h"57 55 #ifdef HAVE_LIBZEPHYR 58 56 #include <zephyr/zephyr.h> … … 100 98 #define OWL_FMTEXT_ATTR_REVERSE 2 101 99 #define OWL_FMTEXT_ATTR_UNDERLINE 4 102 103 #define OWL_FMTEXT_UC_BASE 0x100000 /* Unicode Plane 16 - Supplementary Private Use Area-B*/104 #define OWL_FMTEXT_UC_ATTR ( OWL_FMTEXT_UC_BASE | 0x800 )105 #define OWL_FMTEXT_UC_ATTR_MASK 0x7106 #define OWL_FMTEXT_UC_COLOR_BASE ( OWL_FMTEXT_UC_BASE | 0x400 )107 #define OWL_FMTEXT_UC_FGCOLOR OWL_FMTEXT_UC_COLOR_BASE108 #define OWL_FMTEXT_UC_BGCOLOR ( OWL_FMTEXT_UC_COLOR_BASE | 0x200 )109 #define OWL_FMTEXT_UC_DEFAULT_COLOR 0x100110 #define OWL_FMTEXT_UC_FGDEFAULT ( OWL_FMTEXT_UC_FGCOLOR | OWL_FMTEXT_UC_DEFAULT_COLOR )111 #define OWL_FMTEXT_UC_BGDEFAULT ( OWL_FMTEXT_UC_BGCOLOR | OWL_FMTEXT_UC_DEFAULT_COLOR )112 #define OWL_FMTEXT_UC_COLOR_MASK 0xFF113 #define OWL_FMTEXT_UC_ALLCOLOR_MASK ( OWL_FMTEXT_UC_COLOR_MASK | OWL_FMTEXT_UC_DEFAULT_COLOR | 0x200)114 #define OWL_FMTEXT_UC_STARTBYTE_UTF8 '\xf4'115 116 #define OWL_FMTEXT_UTF8_ATTR_NONE "\xf4\x80\xa0\x80"117 #define OWL_FMTEXT_UTF8_FGDEFAULT "\xf4\x80\x94\x80"118 #define OWL_FMTEXT_UTF8_BGDEFAULT "\xf4\x80\x96\x80"119 120 121 122 100 123 101 #define OWL_COLOR_BLACK 0 … … 272 250 } owl_variable; 273 251 274 typedef struct _owl_input {275 int ch;276 char utf8buf[8];277 gunichar uch;278 } owl_input;279 280 252 typedef struct _owl_fmtext { 281 253 int textlen; 282 254 int bufflen; 283 255 char *textbuff; 284 char default_attrs;285 short default_fgcolor;286 short default_bgcolor;256 char *fmbuff; 257 short *fgcolorbuff; 258 short *bgcolorbuff; 287 259 } owl_fmtext; 288 260 … … 517 489 owl_list bindings; /* key bindings */ 518 490 struct _owl_keymap *submap; /* submap */ 519 void (*default_fn)( owl_input j); /* default action (takes a keypress) */520 void (*prealways_fn)( owl_inputj); /* always called before a keypress is received */521 void (*postalways_fn)( owl_inputj); /* always called after keypress is processed */491 void (*default_fn)(int j); /* default action (takes a keypress) */ 492 void (*prealways_fn)(int j); /* always called before a keypress is received */ 493 void (*postalways_fn)(int j); /* always called after keypress is processed */ 522 494 } owl_keymap; 523 495
Note: See TracChangeset
for help on using the changeset viewer.