2 d1a0f2a3 2021-07-12 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
4 d1a0f2a3 2021-07-12 op * Permission to use, copy, modify, and distribute this software for any
5 d1a0f2a3 2021-07-12 op * purpose with or without fee is hereby granted, provided that the above
6 d1a0f2a3 2021-07-12 op * copyright notice and this permission notice appear in all copies.
8 d1a0f2a3 2021-07-12 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 d1a0f2a3 2021-07-12 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 d1a0f2a3 2021-07-12 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 d1a0f2a3 2021-07-12 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 d1a0f2a3 2021-07-12 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 d1a0f2a3 2021-07-12 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 d1a0f2a3 2021-07-12 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 d1a0f2a3 2021-07-12 op #include "telescope.h"
22 d1a0f2a3 2021-07-12 op extern int body_lines;
23 d1a0f2a3 2021-07-12 op extern int body_cols;
24 d1a0f2a3 2021-07-12 op extern int in_minibuffer;
26 d1a0f2a3 2021-07-12 op extern struct kmap global_map, minibuffer_map, *current_map, *base_map;
28 d1a0f2a3 2021-07-12 op struct excursion {
29 d1a0f2a3 2021-07-12 op int curs_x, curs_y;
30 d1a0f2a3 2021-07-12 op size_t line_off;
31 d1a0f2a3 2021-07-12 op struct vline *current_line;
32 ca783de6 2021-07-18 op struct vline *top_line;
68 d1a0f2a3 2021-07-12 op PPSTART_TRAIL,
80 e7b982f4 2021-07-14 op PCOMPL_CURR_PRFX,
82 e7b982f4 2021-07-14 op PCOMPL_CURR_TRAIL,
89 d1a0f2a3 2021-07-12 op struct thiskey {
94 d1a0f2a3 2021-07-12 op extern struct thiskey thiskey;
96 d1a0f2a3 2021-07-12 op extern struct histhead eecmd_history,
101 83dce83d 2021-07-17 op extern struct tab *current_tab;
103 d1a0f2a3 2021-07-12 op void save_excursion(struct excursion *, struct buffer *);
104 d1a0f2a3 2021-07-12 op void restore_excursion(struct excursion *, struct buffer *);
105 d1a0f2a3 2021-07-12 op void global_key_unbound(void);
106 e7b982f4 2021-07-14 op struct vline *adjust_line(struct vline *, struct buffer *);
107 d1a0f2a3 2021-07-12 op void vmessage(const char *, va_list);
108 d1a0f2a3 2021-07-12 op void message(const char *, ...) __attribute__((format(printf, 1, 2)));
109 d1a0f2a3 2021-07-12 op void start_loading_anim(struct tab *);
110 d1a0f2a3 2021-07-12 op void load_url_in_tab(struct tab *, const char *);
111 d1a0f2a3 2021-07-12 op void switch_to_tab(struct tab *);
112 d1a0f2a3 2021-07-12 op struct buffer *current_buffer(void);
113 d1a0f2a3 2021-07-12 op struct tab *new_tab(const char *);
114 d1a0f2a3 2021-07-12 op unsigned int tab_new_id(void);
115 1853ee50 2021-07-15 op int ui_print_colors(void);
116 d1a0f2a3 2021-07-12 op int ui_init(void);
117 2ddbda6b 2021-07-17 op void ui_main_loop(void);
118 d1a0f2a3 2021-07-12 op void ui_on_tab_loaded(struct tab *);
119 d1a0f2a3 2021-07-12 op void ui_on_tab_refresh(struct tab *);
120 d1a0f2a3 2021-07-12 op const char *ui_keyname(int);
121 d1a0f2a3 2021-07-12 op void ui_toggle_side_window(void);
122 d1a0f2a3 2021-07-12 op void ui_schedule_redraw(void);
123 d1a0f2a3 2021-07-12 op void ui_require_input(struct tab *, int);
124 d1353324 2021-07-13 op void ui_read(const char *, void (*)(const char *, struct tab *), struct tab *);
125 d1a0f2a3 2021-07-12 op void ui_yornp(const char *, void (*)(int, struct tab *), struct tab *);
126 8a3b5609 2021-07-15 op void ui_suspend(void);
127 d1a0f2a3 2021-07-12 op void ui_end(void);