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;
24 extern int in_minibuffer;
26 extern struct kmap global_map, minibuffer_map, *current_map, *base_map;
31 struct vline *current_line;
93 extern struct thiskey thiskey;
95 extern struct histhead eecmd_history,
100 void save_excursion(struct excursion *, struct buffer *);
101 void restore_excursion(struct excursion *, struct buffer *);
102 void global_key_unbound(void);
103 void minibuffer_taint_hist(void);
104 void eecmd_self_insert(void);
105 void eecmd_select(void);
106 void ir_self_insert(void);
107 void ir_select(void);
108 void lu_self_insert(void);
109 void lu_select(void);
110 void bp_select(void);
111 struct vline *adjust_line(struct vline *, struct buffer *);
112 void vmessage(const char *, va_list);
113 void message(const char *, ...) __attribute__((format(printf, 1, 2)));
114 void start_loading_anim(struct tab *);
115 void load_url_in_tab(struct tab *, const char *);
116 void switch_to_tab(struct tab *);
117 struct tab *current_tab(void);
118 struct buffer *current_buffer(void);
119 struct tab *new_tab(const char *);
120 unsigned int tab_new_id(void);
122 void ui_on_tab_loaded(struct tab *);
123 void ui_on_tab_refresh(struct tab *);
124 const char *ui_keyname(int);
125 void ui_toggle_side_window(void);
126 void ui_schedule_redraw(void);
127 void ui_require_input(struct tab *, int);
128 void ui_read(const char *, void (*)(const char *, struct tab *), struct tab *);
129 void ui_yornp(const char *, void (*)(int, struct tab *), struct tab *);