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); |
| 3 | char_u *get_inserted(void); |
| 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); |
| 14 | void AppendCharToRedobuff(int c); |
| 15 | void AppendNumberToRedobuff(long n); |
| 16 | void stuffReadbuff(char_u *s); |
| 17 | void stuffRedoReadbuff(char_u *s); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 18 | void stuffReadbuffSpec(char_u *s); |
| 19 | void stuffcharReadbuff(int c); |
| 20 | void stuffnumReadbuff(long n); |
Bram Moolenaar | 11abd09 | 2020-05-01 14:26:37 +0200 | [diff] [blame] | 21 | void stuffescaped(char_u *arg, int literally); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 22 | int start_redo(long count, int old_redo); |
| 23 | int start_redo_ins(void); |
| 24 | void stop_redo_ins(void); |
Bram Moolenaar | b66bab3 | 2019-08-01 14:28:24 +0200 | [diff] [blame] | 25 | int noremap_keys(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 26 | int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, int silent); |
Bram Moolenaar | c88e977 | 2022-01-03 13:47:50 +0000 | [diff] [blame] | 27 | int ins_char_typebuf(int c, int modifier); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 28 | int typebuf_changed(int tb_change_cnt); |
| 29 | int typebuf_typed(void); |
| 30 | int typebuf_maplen(void); |
| 31 | void del_typebuf(int len, int offset); |
Bram Moolenaar | c88e977 | 2022-01-03 13:47:50 +0000 | [diff] [blame] | 32 | void ungetchars(int len); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 33 | int save_typebuf(void); |
| 34 | void save_typeahead(tasave_T *tp); |
Bram Moolenaar | c41badb | 2021-06-07 22:04:52 +0200 | [diff] [blame] | 35 | void restore_typeahead(tasave_T *tp, int overwrite); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 36 | void openscript(char_u *name, int directly); |
| 37 | void close_all_scripts(void); |
| 38 | int using_script(void); |
| 39 | void before_blocking(void); |
Bram Moolenaar | 975a880 | 2020-06-06 22:36:24 +0200 | [diff] [blame] | 40 | int merge_modifyOtherKeys(int c_arg, int *modifiers); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 41 | int vgetc(void); |
| 42 | int safe_vgetc(void); |
| 43 | int plain_vgetc(void); |
| 44 | int vpeekc(void); |
| 45 | int vpeekc_nomap(void); |
| 46 | int vpeekc_any(void); |
| 47 | int char_avail(void); |
Bram Moolenaar | 9c658c9 | 2019-09-15 21:00:54 +0200 | [diff] [blame] | 48 | void f_getchar(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | 3a7503c | 2021-06-07 18:29:17 +0200 | [diff] [blame] | 49 | void f_getcharstr(typval_T *argvars, typval_T *rettv); |
Bram Moolenaar | 9c658c9 | 2019-09-15 21:00:54 +0200 | [diff] [blame] | 50 | void f_getcharmod(typval_T *argvars, typval_T *rettv); |
| 51 | void parse_queued_messages(void); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 52 | void vungetc(int c); |
Bram Moolenaar | 6bff02e | 2016-08-16 22:50:55 +0200 | [diff] [blame] | 53 | int fix_input_buffer(char_u *buf, int len); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 54 | int input_available(void); |
Bram Moolenaar | e32c3c4 | 2022-01-15 18:26:04 +0000 | [diff] [blame] | 55 | int do_cmdkey_command(int key, int flags); |
Bram Moolenaar | f61c89d | 2022-01-19 22:51:48 +0000 | [diff] [blame] | 56 | void reset_last_used_map(mapblock_T *mp); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 57 | /* vim: set ft=c : */ |