2 * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 #include "telescope.h"
22 extern int body_lines;
25 extern struct kmap global_map, minibuffer_map, *current_map, *base_map;
30 struct vline *current_line;
31 struct vline *top_line;
86 PPATCH_HUNK_HDR_TRAIL,
116 extern struct thiskey thiskey;
118 extern struct tab *current_tab;
120 extern struct buffer helpwin;
121 extern int help_lines, help_cols;
123 void save_excursion(struct excursion *, struct buffer *);
124 void restore_excursion(struct excursion *, struct buffer *);
125 void global_key_unbound(void);
126 struct buffer *current_buffer(void);
127 struct vline *adjust_line(struct vline *, struct buffer *);
128 void start_loading_anim(struct tab *);
130 int ui_print_colors(void);
132 void ui_main_loop(void);
133 void ui_on_tab_loaded(struct tab *);
134 void ui_on_tab_refresh(struct tab *);
135 const char *ui_keyname(int);
136 void ui_toggle_side_window(void);
137 void ui_schedule_redraw(void);
138 void ui_after_message_hook(void);
139 void ui_require_input(struct tab *, int, int);
140 void ui_yornp(const char *, void (*)(int, struct tab *), struct tab *);
141 void ui_read(const char *, void (*)(const char *, struct tab *), struct tab *, const char *);
142 void ui_other_window(void);
143 void ui_suspend(void);