Search notes:

VIM: src/gui.c

gui_start()

This function is called to start a GUI.
Apparently, it can (could?) be called recursively with a :gui command in the .agvimrc file.
This function calls gui_mch_init (at least on Windows).

gui_wait_for_chars_buf()

The main GUI input routine. Waits for a character from the keyboard.
wtime:
Returns the number of characters read or zero when timed out or interrupted.
buf may be NULL, in which case a non-zero number is returned if characters are available.

gui_inchar()

Equivalent of mch_inchar() for the GUI.
See also ui_inchar()

gui_wait_for_chars_or_timer

If FEAT_TIMERS is defined, it calls ui_wait_for_chars_or_timer(), otherwise gui_mch_wait_for_chars().

gui_init()

Start the GUI.
Among others, this function might source runtime/menu.vim.
See also :gui.

See also

gui.h
gui_w32.c

Index