Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* getchar.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | char_u *get_recorded(void); |
Yee Cheng Chin | 0b5fe42 | 2025-03-03 20:12:05 +0100 | [diff] [blame] | 3 | string_T get_inserted(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 4 | int stuff_empty(void); |
| 5 | int readbuf1_empty(void); |
| 6 | void typeahead_noflush(int c); |
Bram Moolenaar | 6a2633b | 2018-10-07 23:16:36 +0200 | [diff] [blame] | 7 | void flush_buffers(flush_buffers_T flush_typeahead); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 8 | void ResetRedobuff(void); |
| 9 | void CancelRedo(void); |
Bram Moolenaar | d4863aa | 2017-04-07 19:50:12 +0200 | [diff] [blame] | 10 | void saveRedobuff(save_redo_T *save_redo); |
| 11 | void restoreRedobuff(save_redo_T *save_redo); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 12 | void AppendToRedobuff(char_u *s); |
| 13 | void AppendToRedobuffLit(char_u *str, int len); |
zeertzjq | 3ab3a86 | 2023-05-06 16:22:04 +0100 | [diff] [blame] | 14 | void AppendToRedobuffSpec(char_u *s); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 15 | void AppendCharToRedobuff(int c); |
| 16 | void AppendNumberToRedobuff(long n); |
| 17 | void stuffReadbuff(char_u *s); |
| 18 | void stuffRedoReadbuff(char_u *s); |
Yegappan Lakshmanan | d2232d7 | 2025-03-24 20:36:14 +0100 | [diff] [blame] | 19 | void stuffReadbuffLen(char_u *s, long len); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 20 | void stuffReadbuffSpec(char_u *s); |
| 21 | void stuffcharReadbuff(int c); |
| 22 | void stuffnumReadbuff(long n); |
Bram Moolenaar | 11abd09 | 2020-05-01 14:26:37 +0200 | [diff] [blame] | 23 | void stuffescaped(char_u *arg, int literally); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 24 | int start_redo(long count, int old_redo); |
| 25 | int start_redo_ins(void); |
| 26 | void stop_redo_ins(void); |
Bram Moolenaar | b66bab3 | 2019-08-01 14:28:24 +0200 | [diff] [blame] | 27 | int noremap_keys(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 28 | int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, int silent); |
Bram Moolenaar | d21e5bd | 2022-06-27 22:52:43 +0100 | [diff] [blame] | 29 | int ins_char_typebuf(int c, int modifiers); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 30 | int typebuf_changed(int tb_change_cnt); |
| 31 | int typebuf_typed(void); |
| 32 | int typebuf_maplen(void); |
| 33 | void del_typebuf(int len, int offset); |
zeertzjq | bf32180 | 2024-01-28 19:03:00 +0100 | [diff] [blame] | 34 | void gotchars_ignore(void); |
Bram Moolenaar | c88e977 | 2022-01-03 13:47:50 +0000 | [diff] [blame] | 35 | void ungetchars(int len); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 36 | int save_typebuf(void); |
| 37 | void save_typeahead(tasave_T *tp); |
Bram Moolenaar | c41badb | 2021-06-07 22:04:52 +0200 | [diff] [blame] | 38 | void restore_typeahead(tasave_T *tp, int overwrite); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 39 | void openscript(char_u *name, int directly); |
| 40 | void close_all_scripts(void); |
| 41 | int using_script(void); |
| 42 | void before_blocking(void); |
Bram Moolenaar | 975a880 | 2020-06-06 22:36:24 +0200 | [diff] [blame] | 43 | int merge_modifyOtherKeys(int c_arg, int *modifiers); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 44 | int vgetc(void); |
| 45 | int safe_vgetc(void); |
| 46 | int plain_vgetc(void); |
| 47 | int vpeekc(void); |
| 48 | int vpeekc_nomap(void); |
| 49 | int vpeekc_any(void); |
| 50 | int char_avail(void); |
Bram Moolenaar | 9c658c9 | 2019-09-15 21:00:54 +0200 | [diff] [blame] | 51 | void f_getchar(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | 3a7503c | 2021-06-07 18:29:17 +0200 | [diff] [blame] | 52 | void f_getcharstr(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | 9c658c9 | 2019-09-15 21:00:54 +0200 | [diff] [blame] | 53 | void f_getcharmod(typval_T *argvars, typval_T *rettv); |
| 54 | void parse_queued_messages(void); |
David Leadbeater | 67ec655 | 2023-10-26 22:00:34 +0200 | [diff] [blame] | 55 | int key_protocol_enabled(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 56 | void vungetc(int c); |
Bram Moolenaar | 6bff02e | 2016-08-16 22:50:55 +0200 | [diff] [blame] | 57 | int fix_input_buffer(char_u *buf, int len); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 58 | int input_available(void); |
Bram Moolenaar | ddf7dba | 2022-09-05 16:53:21 +0100 | [diff] [blame] | 59 | void may_add_last_used_map_to_redobuff(void); |
Bram Moolenaar | e32c3c4 | 2022-01-15 18:26:04 +0000 | [diff] [blame] | 60 | int do_cmdkey_command(int key, int flags); |
Bram Moolenaar | f61c89d | 2022-01-19 22:51:48 +0000 | [diff] [blame] | 61 | void reset_last_used_map(mapblock_T *mp); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 62 | /* vim: set ft=c : */ |