lavat

Un fork de lavat pour pouvoir y ajouter des titres - retour accueil

git clone git://bebou.netlib.re/lavat
Log | Files | Refs | README | LICENSE |

commit 6041d66f83e441b1f63007fa4ea46b3785236336
parent 7c7197b5687fab7b00c0f6e648dd7f020a85ed5b
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri,  7 Feb 2025 17:39:50 +0100

Possibilité de mettre un titre derrière les boules

faire

	make TITLE="mon titre"

puis lancer lavat

Tellement la flemme d'écrire du C qu'on génère du C

Diffstat:
Mmakefile | 5++++-
Apre | 20++++++++++++++++++++
Atags | 427+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 451 insertions(+), 1 deletion(-)

diff --git a/makefile b/makefile @@ -1,7 +1,10 @@ PREFIX = /usr/local +.PHONY: lavat lavat: lavat.c - $(CC) lavat.c -o lavat + ./pre $(TITLE) > l.c + $(CC) l.c -o lavat + rm l.c .PHONY: clean clean: diff --git a/pre b/pre @@ -0,0 +1,20 @@ +#! /bin/sh + +gen() { + title="$1"; + toilet -w 140 "$title" -f ansi > "$tmp" + l=$(< $tmp wc -l) + c=$(< $tmp head -n1 | wc -m) + w="$(($l/2))" + a=0; + while IFS= read line;do + printf "tb_printf(w/2-$c/2,h/2-$(($w-$a-1)),TB_DEFAULT,TB_DEFAULT,\"$line\");\n" + a=$(($a+1)) + done < $tmp | sed 's/--/+/' | head -n-2 +} +tmp=$(mktemp) +title="$1" +gen "$title" > $tmp +< lavat.c awk -v f="$(cat $tmp)" '/^\tinsert_here/ {printf f"\n"};1' | + grep -Ev "^ insert_here" + diff --git a/tags b/tags @@ -0,0 +1,427 @@ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/ +!_TAG_PROGRAM_NAME Exuberant Ctags // +!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ +!_TAG_PROGRAM_VERSION 5.9~svn20110310 // +Ball lavat.c /^} Ball;$/;" t typeref:struct:__anon1 file: +MAX_NBALLS lavat.c 11;" d file: +MIN_NBALLS lavat.c 10;" d file: +PREFIX makefile /^PREFIX = \/usr\/local$/;" m +TB_BLACK termbox.h 199;" d +TB_BLINK termbox.h 211;" d +TB_BLUE termbox.h 203;" d +TB_BOLD termbox.h 207;" d +TB_CAP_ARROW_DOWN termbox.h 173;" d +TB_CAP_ARROW_LEFT termbox.h 174;" d +TB_CAP_ARROW_RIGHT termbox.h 175;" d +TB_CAP_ARROW_UP termbox.h 172;" d +TB_CAP_BACK_TAB termbox.h 176;" d +TB_CAP_BLINK termbox.h 186;" d +TB_CAP_BOLD termbox.h 185;" d +TB_CAP_CLEAR_SCREEN termbox.h 182;" d +TB_CAP_DELETE termbox.h 167;" d +TB_CAP_END termbox.h 169;" d +TB_CAP_ENTER_CA termbox.h 178;" d +TB_CAP_ENTER_KEYPAD termbox.h 189;" d +TB_CAP_EXIT_CA termbox.h 179;" d +TB_CAP_EXIT_KEYPAD termbox.h 190;" d +TB_CAP_F1 termbox.h 154;" d +TB_CAP_F10 termbox.h 163;" d +TB_CAP_F11 termbox.h 164;" d +TB_CAP_F12 termbox.h 165;" d +TB_CAP_F2 termbox.h 155;" d +TB_CAP_F3 termbox.h 156;" d +TB_CAP_F4 termbox.h 157;" d +TB_CAP_F5 termbox.h 158;" d +TB_CAP_F6 termbox.h 159;" d +TB_CAP_F7 termbox.h 160;" d +TB_CAP_F8 termbox.h 161;" d +TB_CAP_F9 termbox.h 162;" d +TB_CAP_HIDE_CURSOR termbox.h 181;" d +TB_CAP_HOME termbox.h 168;" d +TB_CAP_INSERT termbox.h 166;" d +TB_CAP_ITALIC termbox.h 187;" d +TB_CAP_PGDN termbox.h 171;" d +TB_CAP_PGUP termbox.h 170;" d +TB_CAP_REVERSE termbox.h 188;" d +TB_CAP_SGR0 termbox.h 183;" d +TB_CAP_SHOW_CURSOR termbox.h 180;" d +TB_CAP_UNDERLINE termbox.h 184;" d +TB_CAP__COUNT termbox.h 191;" d +TB_CAP__COUNT_KEYS termbox.h 177;" d +TB_CYAN termbox.h 205;" d +TB_DEFAULT termbox.h 212;" d +TB_ERR termbox.h 256;" d +TB_ERR_CAP_COLLISION termbox.h 277;" d +TB_ERR_INIT_ALREADY termbox.h 258;" d +TB_ERR_INIT_OPEN termbox.h 259;" d +TB_ERR_MEM termbox.h 260;" d +TB_ERR_NEED_MORE termbox.h 257;" d +TB_ERR_NOT_INIT termbox.h 263;" d +TB_ERR_NO_EVENT termbox.h 261;" d +TB_ERR_NO_TERM termbox.h 262;" d +TB_ERR_OUT_OF_BOUNDS termbox.h 264;" d +TB_ERR_POLL termbox.h 269;" d +TB_ERR_READ termbox.h 265;" d +TB_ERR_RESIZE_IOCTL termbox.h 266;" d +TB_ERR_RESIZE_PIPE termbox.h 267;" d +TB_ERR_RESIZE_POLL termbox.h 274;" d +TB_ERR_RESIZE_READ termbox.h 275;" d +TB_ERR_RESIZE_SELECT termbox.h 280;" d +TB_ERR_RESIZE_SIGACTION termbox.h 268;" d +TB_ERR_RESIZE_SSCANF termbox.h 276;" d +TB_ERR_RESIZE_WRITE termbox.h 273;" d +TB_ERR_SELECT termbox.h 279;" d +TB_ERR_TCGETATTR termbox.h 270;" d +TB_ERR_TCSETATTR termbox.h 271;" d +TB_ERR_UNSUPPORTED_TERM termbox.h 272;" d +TB_EVENT_KEY termbox.h 223;" d +TB_EVENT_MOUSE termbox.h 225;" d +TB_EVENT_RESIZE termbox.h 224;" d +TB_FUNC_EXTRACT_POST termbox.h 284;" d +TB_FUNC_EXTRACT_PRE termbox.h 283;" d +TB_GREEN termbox.h 201;" d +TB_HARDCAP_ENTER_MOUSE termbox.h 195;" d +TB_HARDCAP_EXIT_MOUSE termbox.h 196;" d +TB_IMPL lavat.c 1;" d file: +TB_INPUT_ALT termbox.h 236;" d +TB_INPUT_CURRENT termbox.h 234;" d +TB_INPUT_ESC termbox.h 235;" d +TB_INPUT_MOUSE termbox.h 237;" d +TB_ITALIC termbox.h 210;" d +TB_KEY_ARROW_DOWN termbox.h 143;" d +TB_KEY_ARROW_LEFT termbox.h 144;" d +TB_KEY_ARROW_RIGHT termbox.h 145;" d +TB_KEY_ARROW_UP termbox.h 142;" d +TB_KEY_BACKSPACE termbox.h 83;" d +TB_KEY_BACKSPACE2 termbox.h 117;" d +TB_KEY_BACK_TAB termbox.h 146;" d +TB_KEY_CTRL_2 termbox.h 75;" d +TB_KEY_CTRL_3 termbox.h 107;" d +TB_KEY_CTRL_4 termbox.h 108;" d +TB_KEY_CTRL_5 termbox.h 110;" d +TB_KEY_CTRL_6 termbox.h 112;" d +TB_KEY_CTRL_7 termbox.h 113;" d +TB_KEY_CTRL_8 termbox.h 118;" d +TB_KEY_CTRL_A termbox.h 76;" d +TB_KEY_CTRL_B termbox.h 77;" d +TB_KEY_CTRL_BACKSLASH termbox.h 109;" d +TB_KEY_CTRL_C termbox.h 78;" d +TB_KEY_CTRL_D termbox.h 79;" d +TB_KEY_CTRL_E termbox.h 80;" d +TB_KEY_CTRL_F termbox.h 81;" d +TB_KEY_CTRL_G termbox.h 82;" d +TB_KEY_CTRL_H termbox.h 84;" d +TB_KEY_CTRL_I termbox.h 86;" d +TB_KEY_CTRL_J termbox.h 87;" d +TB_KEY_CTRL_K termbox.h 88;" d +TB_KEY_CTRL_L termbox.h 89;" d +TB_KEY_CTRL_LSQ_BRACKET termbox.h 106;" d +TB_KEY_CTRL_M termbox.h 91;" d +TB_KEY_CTRL_N termbox.h 92;" d +TB_KEY_CTRL_O termbox.h 93;" d +TB_KEY_CTRL_P termbox.h 94;" d +TB_KEY_CTRL_Q termbox.h 95;" d +TB_KEY_CTRL_R termbox.h 96;" d +TB_KEY_CTRL_RSQ_BRACKET termbox.h 111;" d +TB_KEY_CTRL_S termbox.h 97;" d +TB_KEY_CTRL_SLASH termbox.h 114;" d +TB_KEY_CTRL_T termbox.h 98;" d +TB_KEY_CTRL_TILDE termbox.h 74;" d +TB_KEY_CTRL_U termbox.h 99;" d +TB_KEY_CTRL_UNDERSCORE termbox.h 115;" d +TB_KEY_CTRL_V termbox.h 100;" d +TB_KEY_CTRL_W termbox.h 101;" d +TB_KEY_CTRL_X termbox.h 102;" d +TB_KEY_CTRL_Y termbox.h 103;" d +TB_KEY_CTRL_Z termbox.h 104;" d +TB_KEY_DELETE termbox.h 137;" d +TB_KEY_END termbox.h 139;" d +TB_KEY_ENTER termbox.h 90;" d +TB_KEY_ESC termbox.h 105;" d +TB_KEY_F1 termbox.h 124;" d +TB_KEY_F10 termbox.h 133;" d +TB_KEY_F11 termbox.h 134;" d +TB_KEY_F12 termbox.h 135;" d +TB_KEY_F2 termbox.h 125;" d +TB_KEY_F3 termbox.h 126;" d +TB_KEY_F4 termbox.h 127;" d +TB_KEY_F5 termbox.h 128;" d +TB_KEY_F6 termbox.h 129;" d +TB_KEY_F7 termbox.h 130;" d +TB_KEY_F8 termbox.h 131;" d +TB_KEY_F9 termbox.h 132;" d +TB_KEY_HOME termbox.h 138;" d +TB_KEY_INSERT termbox.h 136;" d +TB_KEY_MOUSE_LEFT termbox.h 147;" d +TB_KEY_MOUSE_MIDDLE termbox.h 149;" d +TB_KEY_MOUSE_RELEASE termbox.h 150;" d +TB_KEY_MOUSE_RIGHT termbox.h 148;" d +TB_KEY_MOUSE_WHEEL_DOWN termbox.h 152;" d +TB_KEY_MOUSE_WHEEL_UP termbox.h 151;" d +TB_KEY_PGDN termbox.h 141;" d +TB_KEY_PGUP termbox.h 140;" d +TB_KEY_SPACE termbox.h 116;" d +TB_KEY_TAB termbox.h 85;" d +TB_MAGENTA termbox.h 204;" d +TB_MOD_ALT termbox.h 228;" d +TB_MOD_CTRL termbox.h 229;" d +TB_MOD_MOTION termbox.h 231;" d +TB_MOD_SHIFT termbox.h 230;" d +TB_OK termbox.h 255;" d +TB_OPT_EGC termbox.h 66;" d +TB_OPT_EGC termbox.h 70;" d +TB_OPT_PRINTF_BUF termbox.h 290;" d +TB_OPT_PRINTF_BUF termbox.h 67;" d +TB_OPT_READ_BUF termbox.h 297;" d +TB_OPT_READ_BUF termbox.h 68;" d +TB_OPT_TRUECOLOR termbox.h 65;" d +TB_OPT_TRUECOLOR termbox.h 69;" d +TB_OUTPUT_216 termbox.h 243;" d +TB_OUTPUT_256 termbox.h 242;" d +TB_OUTPUT_CURRENT termbox.h 240;" d +TB_OUTPUT_GRAYSCALE termbox.h 244;" d +TB_OUTPUT_NORMAL termbox.h 241;" d +TB_OUTPUT_TRUECOLOR termbox.h 246;" d +TB_RED termbox.h 200;" d +TB_RESIZE_FALLBACK_MS termbox.h 2150;" d +TB_REVERSE termbox.h 209;" d +TB_TRUECOLOR_BLINK termbox.h 218;" d +TB_TRUECOLOR_BOLD termbox.h 214;" d +TB_TRUECOLOR_DEFAULT termbox.h 219;" d +TB_TRUECOLOR_ITALIC termbox.h 217;" d +TB_TRUECOLOR_REVERSE termbox.h 216;" d +TB_TRUECOLOR_UNDERLINE termbox.h 215;" d +TB_UNDERLINE termbox.h 208;" d +TB_VERSION_STR termbox.h 61;" d +TB_WHITE termbox.h 206;" d +TB_YELLOW termbox.h 202;" d +_DEFAULT_SOURCE termbox.h 34;" d +_XOPEN_SOURCE termbox.h 30;" d +__TERMBOX_H termbox.h 27;" d +alias termbox.h /^ const char *alias;$/;" m struct:__anon2 +back termbox.h /^ struct cellbuf_t back;$/;" m struct:tb_global_t typeref:struct:tb_global_t::cellbuf_t +balls lavat.c /^static Ball balls[MAX_NBALLS] = {0};$/;" v file: +bg termbox.h /^ uintattr_t bg; \/* bitwise background attributes *\/$/;" m struct:tb_cell +bg termbox.h /^ uintattr_t bg;$/;" m struct:tb_global_t +buf termbox.h /^ char *buf;$/;" m struct:bytebuf_t +builtin_mod_caps termbox.h /^} builtin_mod_caps[] = {$/;" v typeref:struct:__anon3 +builtin_terms termbox.h /^} builtin_terms[] = {$/;" v typeref:struct:__anon2 +bytebuf_flush termbox.h /^static int bytebuf_flush(struct bytebuf_t *b, int fd) {$/;" f +bytebuf_free termbox.h /^static int bytebuf_free(struct bytebuf_t *b) {$/;" f +bytebuf_nputs termbox.h /^static int bytebuf_nputs(struct bytebuf_t *b, const char *str, size_t nstr) {$/;" f +bytebuf_puts termbox.h /^static int bytebuf_puts(struct bytebuf_t *b, const char *str) {$/;" f +bytebuf_reserve termbox.h /^static int bytebuf_reserve(struct bytebuf_t *b, size_t sz) {$/;" f +bytebuf_shift termbox.h /^static int bytebuf_shift(struct bytebuf_t *b, size_t n) {$/;" f +bytebuf_t termbox.h /^struct bytebuf_t {$/;" s +c termbox.h /^ char c;$/;" m struct:cap_trie_t +cap termbox.h /^ const char *cap;$/;" m struct:__anon3 +cap termbox.h /^ size_t cap;$/;" m struct:bytebuf_t +cap_trie termbox.h /^ struct cap_trie_t cap_trie;$/;" m struct:tb_global_t typeref:struct:tb_global_t::cap_trie_t +cap_trie_add termbox.h /^static int cap_trie_add(const char *cap, uint16_t key, uint8_t mod) {$/;" f +cap_trie_deinit termbox.h /^static int cap_trie_deinit(struct cap_trie_t *node) {$/;" f +cap_trie_find termbox.h /^static int cap_trie_find(const char *buf, size_t nbuf, struct cap_trie_t **last,$/;" f +cap_trie_t termbox.h /^struct cap_trie_t {$/;" s +caps termbox.h /^ const char **caps;$/;" m struct:__anon2 +caps termbox.h /^ const char *caps[TB_CAP__COUNT];$/;" m struct:tb_global_t +cech termbox.h /^ size_t cech; \/* capacity in bytes of ech *\/$/;" m struct:tb_cell +cell_cmp termbox.h /^static int cell_cmp(struct tb_cell *a, struct tb_cell *b) {$/;" f +cell_copy termbox.h /^static int cell_copy(struct tb_cell *dst, struct tb_cell *src) {$/;" f +cell_free termbox.h /^static int cell_free(struct tb_cell *cell) {$/;" f +cell_reserve_ech termbox.h /^static int cell_reserve_ech(struct tb_cell *cell, size_t n) {$/;" f +cell_set termbox.h /^static int cell_set(struct tb_cell *cell, uint32_t *ch, size_t nch,$/;" f +cellbuf_clear termbox.h /^static int cellbuf_clear(struct cellbuf_t *c) {$/;" f +cellbuf_free termbox.h /^static int cellbuf_free(struct cellbuf_t *c) {$/;" f +cellbuf_get termbox.h /^static int cellbuf_get(struct cellbuf_t *c, int x, int y,$/;" f +cellbuf_init termbox.h /^static int cellbuf_init(struct cellbuf_t *c, int w, int h) {$/;" f +cellbuf_resize termbox.h /^static int cellbuf_resize(struct cellbuf_t *c, int w, int h) {$/;" f +cellbuf_t termbox.h /^struct cellbuf_t {$/;" s +cells termbox.h /^ struct tb_cell *cells;$/;" m struct:cellbuf_t typeref:struct:cellbuf_t::tb_cell +ch termbox.h /^ uint32_t ch; \/* a Unicode character *\/$/;" m struct:tb_cell +ch termbox.h /^ uint32_t ch; \/* a Unicode code point *\/$/;" m struct:tb_event +children termbox.h /^ struct cap_trie_t *children;$/;" m struct:cap_trie_t typeref:struct:cap_trie_t::cap_trie_t +color lavat.c /^static short color = TB_WHITE;$/;" v file: +color2 lavat.c /^static short color2 = TB_WHITE;$/;" v file: +colors lavat.c /^static short colors[]={TB_WHITE, TB_RED, TB_YELLOW, TB_BLUE, TB_GREEN, TB_MAGENTA, TB_CYAN, TB_BLACK };$/;" v file: +contained lavat.c /^static short contained = 0;$/;" v file: +convert_num termbox.h /^static int convert_num(uint32_t num, char *buf) {$/;" f +cursor_x termbox.h /^ int cursor_x;$/;" m struct:tb_global_t +cursor_y termbox.h /^ int cursor_y;$/;" m struct:tb_global_t +custom lavat.c /^static char *custom = NULL;$/;" v file: +custom2 lavat.c /^static char *custom2 = NULL;$/;" v file: +dx lavat.c /^ int dx;$/;" m struct:__anon1 file: +dy lavat.c /^ int dy;$/;" m struct:__anon1 file: +ech termbox.h /^ uint32_t *ech; \/* a grapheme cluster of Unicode code points *\/$/;" m struct:tb_cell +errbuf termbox.h /^ char errbuf[1024];$/;" m struct:tb_global_t +eterm_caps termbox.h /^static const char *eterm_caps[] = {$/;" v +event lavat.c /^static struct tb_event event = {0};$/;" v typeref:struct:tb_event file: +event_handler lavat.c /^void event_handler() {$/;" f +extract_esc termbox.h /^static int extract_esc(struct tb_event *event) {$/;" f +extract_esc_cap termbox.h /^static int extract_esc_cap(struct tb_event *event) {$/;" f +extract_esc_mouse termbox.h /^static int extract_esc_mouse(struct tb_event *event) {$/;" f +extract_esc_user termbox.h /^static int extract_esc_user(struct tb_event *event, int is_post) {$/;" f +extract_event termbox.h /^static int extract_event(struct tb_event *event) {$/;" f +fg termbox.h /^ uintattr_t fg; \/* bitwise foreground attributes *\/$/;" m struct:tb_cell +fg termbox.h /^ uintattr_t fg;$/;" m struct:tb_global_t +fix_rim_color lavat.c /^void fix_rim_color(){$/;" f +fn_extract_esc_post termbox.h /^ int (*fn_extract_esc_post)(struct tb_event *, size_t *);$/;" m struct:tb_global_t +fn_extract_esc_pre termbox.h /^ int (*fn_extract_esc_pre)(struct tb_event *, size_t *);$/;" m struct:tb_global_t +front termbox.h /^ struct cellbuf_t front;$/;" m struct:tb_global_t typeref:struct:tb_global_t::cellbuf_t +get_terminfo_string termbox.h /^static const char *get_terminfo_string(int16_t str_offsets_pos,$/;" f +global termbox.h /^static struct tb_global_t global = {0};$/;" v typeref:struct:tb_global_t +h termbox.h /^ int32_t h; \/* resize height *\/$/;" m struct:tb_event +handle_resize termbox.h /^static void handle_resize(int sig) {$/;" f +has_orig_tios termbox.h /^ int has_orig_tios;$/;" m struct:tb_global_t +height termbox.h /^ int height;$/;" m struct:cellbuf_t +height termbox.h /^ int height;$/;" m struct:tb_global_t +hr lavat.c /^int hr(int coloffset, int lineoffset, int length, bool selected) {$/;" f +if_err_break termbox.h 589;" d +if_err_return termbox.h 586;" d +if_not_init_return termbox.h 613;" d +if_ok_or_need_more_return termbox.h 595;" d +if_ok_return termbox.h 592;" d +in termbox.h /^ struct bytebuf_t in;$/;" m struct:tb_global_t typeref:struct:tb_global_t::bytebuf_t +init_cap_trie termbox.h /^static int init_cap_trie(void) {$/;" f +init_cellbuf termbox.h /^static int init_cellbuf(void) {$/;" f +init_params lavat.c /^void init_params() {$/;" f +init_resize_handler termbox.h /^static int init_resize_handler(void) {$/;" f +init_term_attrs termbox.h /^static int init_term_attrs(void) {$/;" f +init_term_caps termbox.h /^static int init_term_caps(void) {$/;" f +initialized termbox.h /^ int initialized;$/;" m struct:tb_global_t +input_mode termbox.h /^ int input_mode;$/;" m struct:tb_global_t +is_leaf termbox.h /^ int is_leaf;$/;" m struct:cap_trie_t +key termbox.h /^ const uint16_t key;$/;" m struct:__anon3 +key termbox.h /^ uint16_t key; \/* one of TB_KEY_* constants *\/$/;" m struct:tb_event +key termbox.h /^ uint16_t key;$/;" m struct:cap_trie_t +last_bg termbox.h /^ uintattr_t last_bg;$/;" m struct:tb_global_t +last_errno termbox.h /^ int last_errno;$/;" m struct:tb_global_t +last_fg termbox.h /^ uintattr_t last_fg;$/;" m struct:tb_global_t +last_x termbox.h /^ int last_x;$/;" m struct:tb_global_t +last_y termbox.h /^ int last_y;$/;" m struct:tb_global_t +len termbox.h /^ size_t len;$/;" m struct:bytebuf_t +linux_caps termbox.h /^static const char *linux_caps[] = {$/;" v +load_builtin_caps termbox.h /^static int load_builtin_caps(void) {$/;" f +load_terminfo termbox.h /^static int load_terminfo(void) {$/;" f +load_terminfo_from_path termbox.h /^static int load_terminfo_from_path(const char *path, const char *term) {$/;" f +main lavat.c /^int main(int argc, char *argv[]) {$/;" f +margin lavat.c /^static int margin;$/;" v file: +maxX lavat.c /^static int maxX, maxY;$/;" v file: +maxY lavat.c /^static int maxX, maxY;$/;" v file: +mod termbox.h /^ const uint8_t mod;$/;" m struct:__anon3 +mod termbox.h /^ uint8_t mod; \/* bitwise TB_MOD_* constants *\/$/;" m struct:tb_event +mod termbox.h /^ uint8_t mod;$/;" m struct:cap_trie_t +name termbox.h /^ const char *name;$/;" m struct:__anon2 +nballs lavat.c /^static int nballs = 10;$/;" v file: +nblines lavat.c /^int nblines(char *str) {$/;" f +nchildren termbox.h /^ size_t nchildren;$/;" m struct:cap_trie_t +nech termbox.h /^ size_t nech; \/* length in bytes of ech, 0 means use ch instead of ech *\/$/;" m struct:tb_cell +next_color lavat.c /^short next_color(short current){$/;" f +nterminfo termbox.h /^ size_t nterminfo;$/;" m struct:tb_global_t +orig_tios termbox.h /^ struct termios orig_tios;$/;" m struct:tb_global_t typeref:struct:tb_global_t::termios +out termbox.h /^ struct bytebuf_t out;$/;" m struct:tb_global_t typeref:struct:tb_global_t::bytebuf_t +output_mode termbox.h /^ int output_mode;$/;" m struct:tb_global_t +parse_options lavat.c /^int parse_options(int argc, char *argv[]) {$/;" f +parse_terminfo_caps termbox.h /^static int parse_terminfo_caps(void) {$/;" f +party lavat.c /^static short party = 0;$/;" v file: +print_help lavat.c /^void print_help() {$/;" f +radius lavat.c /^static float radius;$/;" v file: +radiusIn lavat.c /^static float radiusIn = 100;$/;" v file: +read_terminfo_path termbox.h /^static int read_terminfo_path(const char *path) {$/;" f +resize_cellbufs termbox.h /^static int resize_cellbufs(void) {$/;" f +resize_pipefd termbox.h /^ int resize_pipefd[2];$/;" m struct:tb_global_t +rfd termbox.h /^ int rfd;$/;" m struct:tb_global_t +rim lavat.c /^static short rim = 1;$/;" v file: +rxvt_256color_caps termbox.h /^static const char *rxvt_256color_caps[] = {$/;" v +rxvt_unicode_caps termbox.h /^static const char *rxvt_unicode_caps[] = {$/;" v +screen_caps termbox.h /^static const char *screen_caps[] = {$/;" v +send_attr termbox.h /^static int send_attr(uintattr_t fg, uintattr_t bg) {$/;" f +send_char termbox.h /^static int send_char(int x, int y, uint32_t ch) {$/;" f +send_clear termbox.h /^static int send_clear(void) {$/;" f +send_cluster termbox.h /^static int send_cluster(int x, int y, uint32_t *ch, size_t nch) {$/;" f +send_cursor_if termbox.h /^static int send_cursor_if(int x, int y) {$/;" f +send_init_escape_codes termbox.h /^static int send_init_escape_codes(void) {$/;" f +send_literal termbox.h 599;" d +send_num termbox.h 602;" d +send_sgr termbox.h /^static int send_sgr(uintattr_t cfg, uintattr_t cbg, uintattr_t fg_is_default,$/;" f +set_color lavat.c /^int set_color(short *var, char *optarg) {$/;" f +set_random_colors lavat.c /^void set_random_colors( short level){$/;" f +snprintf_or_return termbox.h 606;" d +speed lavat.c /^static int speed;$/;" v file: +speedMult lavat.c /^static short speedMult = 5;$/;" v file: +sumConst lavat.c /^static float sumConst;$/;" v file: +sumConst2 lavat.c /^static float sumConst2;$/;" v file: +tb_cell termbox.h /^struct tb_cell {$/;" s +tb_cell_buffer termbox.h /^struct tb_cell *tb_cell_buffer(void) {$/;" f +tb_change_cell termbox.h 302;" d +tb_clear termbox.h /^int tb_clear(void) {$/;" f +tb_deinit termbox.h /^static int tb_deinit(void) {$/;" f +tb_event termbox.h /^struct tb_event {$/;" s +tb_extend_cell termbox.h /^int tb_extend_cell(int x, int y, uint32_t ch) {$/;" f +tb_free termbox.h 313;" d +tb_get_fds termbox.h /^int tb_get_fds(int *ttyfd, int *resizefd) {$/;" f +tb_global_t termbox.h /^struct tb_global_t {$/;" s +tb_has_egc termbox.h /^int tb_has_egc(void) {$/;" f +tb_has_truecolor termbox.h /^int tb_has_truecolor(void) {$/;" f +tb_height termbox.h /^int tb_height(void) {$/;" f +tb_hide_cursor termbox.h /^int tb_hide_cursor(void) {$/;" f +tb_init termbox.h /^int tb_init(void) {$/;" f +tb_init_fd termbox.h /^int tb_init_fd(int ttyfd) {$/;" f +tb_init_file termbox.h /^int tb_init_file(const char *path) {$/;" f +tb_init_rwfd termbox.h /^int tb_init_rwfd(int rfd, int wfd) {$/;" f +tb_key_i termbox.h 120;" d +tb_last_errno termbox.h /^int tb_last_errno(void) {$/;" f +tb_malloc termbox.h 311;" d +tb_peek_event termbox.h /^int tb_peek_event(struct tb_event *event, int timeout_ms) {$/;" f +tb_poll_event termbox.h /^int tb_poll_event(struct tb_event *event) {$/;" f +tb_present termbox.h /^int tb_present(void) {$/;" f +tb_print termbox.h /^int tb_print(int x, int y, uintattr_t fg, uintattr_t bg, const char *str) {$/;" f +tb_print_ex termbox.h /^int tb_print_ex(int x, int y, uintattr_t fg, uintattr_t bg, size_t *out_w,$/;" f +tb_printf termbox.h /^int tb_printf(int x, int y, uintattr_t fg, uintattr_t bg, const char *fmt,$/;" f +tb_printf_ex termbox.h /^int tb_printf_ex(int x, int y, uintattr_t fg, uintattr_t bg, size_t *out_w,$/;" f +tb_printf_inner termbox.h /^int tb_printf_inner(int x, int y, uintattr_t fg, uintattr_t bg, size_t *out_w,$/;" f +tb_put_cell termbox.h 303;" d +tb_realloc termbox.h 312;" d +tb_reset termbox.h /^static int tb_reset(void) {$/;" f +tb_select_input_mode termbox.h 305;" d +tb_select_output_mode termbox.h 306;" d +tb_send termbox.h /^int tb_send(const char *buf, size_t nbuf) {$/;" f +tb_sendf termbox.h /^int tb_sendf(const char *fmt, ...) {$/;" f +tb_set_cell termbox.h /^int tb_set_cell(int x, int y, uint32_t ch, uintattr_t fg, uintattr_t bg) {$/;" f +tb_set_cell_ex termbox.h /^int tb_set_cell_ex(int x, int y, uint32_t *ch, size_t nch, uintattr_t fg,$/;" f +tb_set_clear_attributes termbox.h 304;" d +tb_set_clear_attrs termbox.h /^int tb_set_clear_attrs(uintattr_t fg, uintattr_t bg) {$/;" f +tb_set_cursor termbox.h /^int tb_set_cursor(int cx, int cy) {$/;" f +tb_set_func termbox.h /^int tb_set_func(int fn_type, int (*fn)(struct tb_event *, size_t *)) {$/;" f +tb_set_input_mode termbox.h /^int tb_set_input_mode(int mode) {$/;" f +tb_set_output_mode termbox.h /^int tb_set_output_mode(int mode) {$/;" f +tb_shutdown termbox.h /^int tb_shutdown(void) {$/;" f +tb_strerror termbox.h /^const char *tb_strerror(int err) {$/;" f +tb_utf8_char_length termbox.h /^int tb_utf8_char_length(char c) {$/;" f +tb_utf8_char_to_unicode termbox.h /^int tb_utf8_char_to_unicode(uint32_t *out, const char *c) {$/;" f +tb_utf8_unicode_to_char termbox.h /^int tb_utf8_unicode_to_char(char *out, uint32_t c) {$/;" f +tb_version termbox.h /^const char *tb_version(void) {$/;" f +tb_width termbox.h /^int tb_width(void) {$/;" f +terminfo termbox.h /^ char *terminfo;$/;" m struct:tb_global_t +terminfo_cap_indexes termbox.h /^static const int16_t terminfo_cap_indexes[] = {$/;" v +title lavat.c /^static char *title = NULL;$/;" v file: +ttyfd termbox.h /^ int ttyfd;$/;" m struct:tb_global_t +ttyfd_open termbox.h /^ int ttyfd_open;$/;" m struct:tb_global_t +type termbox.h /^ uint8_t type; \/* one of TB_EVENT_* constants *\/$/;" m struct:tb_event +uintattr_t termbox.h /^typedef uint16_t uintattr_t;$/;" t +uintattr_t termbox.h /^typedef uint32_t uintattr_t;$/;" t +update_term_size termbox.h /^static int update_term_size(void) {$/;" f +update_term_size_via_esc termbox.h /^static int update_term_size_via_esc(void) {$/;" f +utf8_length termbox.h /^static const unsigned char utf8_length[256] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,$/;" v +utf8_mask termbox.h /^static const unsigned char utf8_mask[6] = {0x7f, 0x1f, 0x0f, 0x07, 0x03, 0x01};$/;" v +vr lavat.c /^void vr(int coloffset, int lineoffset, int length, bool selected) {$/;" f +w termbox.h /^ int32_t w; \/* resize width *\/$/;" m struct:tb_event +wait_event termbox.h /^static int wait_event(struct tb_event *event, int timeout) {$/;" f +wfd termbox.h /^ int wfd;$/;" m struct:tb_global_t +width termbox.h /^ int width;$/;" m struct:cellbuf_t +width termbox.h /^ int width;$/;" m struct:tb_global_t +x lavat.c /^ int x;$/;" m struct:__anon1 file: +x termbox.h /^ int32_t x; \/* mouse x *\/$/;" m struct:tb_event +xterm_caps termbox.h /^static const char *xterm_caps[] = {$/;" v +y lavat.c /^ int y;$/;" m struct:__anon1 file: +y termbox.h /^ int32_t y; \/* mouse y *\/$/;" m struct:tb_event