Changes in owl.h [62fdd29:88dc766]
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r62fdd29 r88dc766 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> … … 67 65 /* logout is defined in FreeBSD. */ 68 66 #define logout logout_ 67 /* aim.h defines bool */ 68 #define HAS_BOOL 69 69 #include <perl.h> 70 70 #undef logout … … 76 76 static const char owl_h_fileIdent[] = "$Id$"; 77 77 78 #define STRINGIFY(x) _STRINGIFY(x)78 #define BARNOWL_STRINGIFY(x) _STRINGIFY(x) 79 79 #define _STRINGIFY(x) #x 80 80 … … 83 83 #endif 84 84 85 #define OWL_VERSION_STRING "r" STRINGIFY(OWL_SVN_REVNO)85 #define OWL_VERSION_STRING "r" BARNOWL_STRINGIFY(OWL_SVN_REVNO) 86 86 87 87 … … 100 100 #define OWL_FMTEXT_ATTR_REVERSE 2 101 101 #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 102 123 103 #define OWL_COLOR_BLACK 0 … … 232 212 #endif 233 213 234 #define OWL_META(key) ((key)|0 10000)214 #define OWL_META(key) ((key)|0200) 235 215 /* OWL_CTRL is definied in kepress.c */ 236 216 … … 272 252 } owl_variable; 273 253 274 typedef struct _owl_input {275 int ch;276 gunichar uch;277 } owl_input;278 279 254 typedef struct _owl_fmtext { 280 255 int textlen; 281 256 int bufflen; 282 257 char *textbuff; 283 char default_attrs;284 short default_fgcolor;285 short default_bgcolor;258 char *fmbuff; 259 short *fgcolorbuff; 260 short *bgcolorbuff; 286 261 } owl_fmtext; 287 262 … … 516 491 owl_list bindings; /* key bindings */ 517 492 struct _owl_keymap *submap; /* submap */ 518 void (*default_fn)( owl_input j); /* default action (takes a keypress) */519 void (*prealways_fn)( owl_inputj); /* always called before a keypress is received */520 void (*postalways_fn)( owl_inputj); /* always called after keypress is processed */493 void (*default_fn)(int j); /* default action (takes a keypress) */ 494 void (*prealways_fn)(int j); /* always called before a keypress is received */ 495 void (*postalways_fn)(int j); /* always called after keypress is processed */ 521 496 } owl_keymap; 522 497
Note: See TracChangeset
for help on using the changeset viewer.