version 1.1206, 2023/08/17 14:10:28 |
version 1.1207, 2023/09/01 14:29:11 |
|
|
UTF8_ERROR |
UTF8_ERROR |
}; |
}; |
|
|
|
/* UTF-8 combine state. */ |
|
enum utf8_combine_state { |
|
UTF8_DISCARD_NOW, /* discard immediately */ |
|
UTF8_WRITE_NOW, /* do not combine, write immediately */ |
|
UTF8_COMBINE_NOW, /* combine immediately */ |
|
UTF8_WRITE_MAYBE_COMBINE, /* write but try to combine the next */ |
|
UTF8_DISCARD_MAYBE_COMBINE /* discard but try to combine the next */ |
|
}; |
|
|
/* Colour flags. */ |
/* Colour flags. */ |
#define COLOUR_FLAG_256 0x01000000 |
#define COLOUR_FLAG_256 0x01000000 |
#define COLOUR_FLAG_RGB 0x02000000 |
#define COLOUR_FLAG_RGB 0x02000000 |
|
|
|
|
int flags; |
int flags; |
#define SCREEN_WRITE_SYNC 0x1 |
#define SCREEN_WRITE_SYNC 0x1 |
#define SCREEN_WRITE_ZWJ 0x2 |
#define SCREEN_WRITE_COMBINE 0x2 |
|
|
screen_write_init_ctx_cb init_ctx_cb; |
screen_write_init_ctx_cb init_ctx_cb; |
void *arg; |
void *arg; |
|
|
struct screen_write_citem *item; |
struct screen_write_citem *item; |
u_int scrolled; |
u_int scrolled; |
u_int bg; |
u_int bg; |
|
struct utf8_data previous; |
}; |
}; |
|
|
/* Box border lines option. */ |
/* Box border lines option. */ |
|
|
char *utf8_padcstr(const char *, u_int); |
char *utf8_padcstr(const char *, u_int); |
char *utf8_rpadcstr(const char *, u_int); |
char *utf8_rpadcstr(const char *, u_int); |
int utf8_cstrhas(const char *, const struct utf8_data *); |
int utf8_cstrhas(const char *, const struct utf8_data *); |
|
|
|
/* utf8-combined.c */ |
|
void utf8_build_combined(void); |
|
int utf8_try_combined(const struct utf8_data *, |
|
const struct utf8_data *, const struct utf8_data **, |
|
u_int *width); |
|
|
/* procname.c */ |
/* procname.c */ |
char *get_proc_name(int, char *); |
char *get_proc_name(int, char *); |