blob: cf5ef7fe021e0fb07bd87e0331d0e1f22f048ce0 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001/* getchar.c */
Bram Moolenaaref269542016-01-19 13:22:12 +01002char_u *get_recorded(void);
Yee Cheng Chin0b5fe422025-03-03 20:12:05 +01003string_T get_inserted(void);
Bram Moolenaaref269542016-01-19 13:22:12 +01004int stuff_empty(void);
5int readbuf1_empty(void);
6void typeahead_noflush(int c);
Bram Moolenaar6a2633b2018-10-07 23:16:36 +02007void flush_buffers(flush_buffers_T flush_typeahead);
Bram Moolenaaref269542016-01-19 13:22:12 +01008void ResetRedobuff(void);
9void CancelRedo(void);
Bram Moolenaard4863aa2017-04-07 19:50:12 +020010void saveRedobuff(save_redo_T *save_redo);
11void restoreRedobuff(save_redo_T *save_redo);
Bram Moolenaaref269542016-01-19 13:22:12 +010012void AppendToRedobuff(char_u *s);
13void AppendToRedobuffLit(char_u *str, int len);
zeertzjq3ab3a862023-05-06 16:22:04 +010014void AppendToRedobuffSpec(char_u *s);
Bram Moolenaaref269542016-01-19 13:22:12 +010015void AppendCharToRedobuff(int c);
16void AppendNumberToRedobuff(long n);
17void stuffReadbuff(char_u *s);
18void stuffRedoReadbuff(char_u *s);
Yegappan Lakshmanand2232d72025-03-24 20:36:14 +010019void stuffReadbuffLen(char_u *s, long len);
Bram Moolenaaref269542016-01-19 13:22:12 +010020void stuffReadbuffSpec(char_u *s);
21void stuffcharReadbuff(int c);
22void stuffnumReadbuff(long n);
Bram Moolenaar11abd092020-05-01 14:26:37 +020023void stuffescaped(char_u *arg, int literally);
Bram Moolenaaref269542016-01-19 13:22:12 +010024int start_redo(long count, int old_redo);
25int start_redo_ins(void);
26void stop_redo_ins(void);
Bram Moolenaarb66bab32019-08-01 14:28:24 +020027int noremap_keys(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010028int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, int silent);
Bram Moolenaard21e5bd2022-06-27 22:52:43 +010029int ins_char_typebuf(int c, int modifiers);
Bram Moolenaaref269542016-01-19 13:22:12 +010030int typebuf_changed(int tb_change_cnt);
31int typebuf_typed(void);
32int typebuf_maplen(void);
33void del_typebuf(int len, int offset);
zeertzjqbf321802024-01-28 19:03:00 +010034void gotchars_ignore(void);
Bram Moolenaarc88e9772022-01-03 13:47:50 +000035void ungetchars(int len);
Bram Moolenaaref269542016-01-19 13:22:12 +010036int save_typebuf(void);
37void save_typeahead(tasave_T *tp);
Bram Moolenaarc41badb2021-06-07 22:04:52 +020038void restore_typeahead(tasave_T *tp, int overwrite);
Bram Moolenaaref269542016-01-19 13:22:12 +010039void openscript(char_u *name, int directly);
40void close_all_scripts(void);
41int using_script(void);
42void before_blocking(void);
Bram Moolenaar975a8802020-06-06 22:36:24 +020043int merge_modifyOtherKeys(int c_arg, int *modifiers);
Bram Moolenaaref269542016-01-19 13:22:12 +010044int vgetc(void);
45int safe_vgetc(void);
46int plain_vgetc(void);
47int vpeekc(void);
48int vpeekc_nomap(void);
49int vpeekc_any(void);
50int char_avail(void);
Bram Moolenaar9c658c92019-09-15 21:00:54 +020051void f_getchar(typval_T *argvars, typval_T *rettv);
Bram Moolenaar3a7503c2021-06-07 18:29:17 +020052void f_getcharstr(typval_T *argvars, typval_T *rettv);
Bram Moolenaar9c658c92019-09-15 21:00:54 +020053void f_getcharmod(typval_T *argvars, typval_T *rettv);
54void parse_queued_messages(void);
David Leadbeater67ec6552023-10-26 22:00:34 +020055int key_protocol_enabled(void);
Bram Moolenaaref269542016-01-19 13:22:12 +010056void vungetc(int c);
Bram Moolenaar6bff02e2016-08-16 22:50:55 +020057int fix_input_buffer(char_u *buf, int len);
Bram Moolenaaref269542016-01-19 13:22:12 +010058int input_available(void);
Bram Moolenaarddf7dba2022-09-05 16:53:21 +010059void may_add_last_used_map_to_redobuff(void);
Bram Moolenaare32c3c42022-01-15 18:26:04 +000060int do_cmdkey_command(int key, int flags);
Bram Moolenaarf61c89d2022-01-19 22:51:48 +000061void reset_last_used_map(mapblock_T *mp);
Bram Moolenaar071d4272004-06-13 20:20:40 +000062/* vim: set ft=c : */