diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 16:02:22 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 16:02:22 +0200 |
| commit | ec7be68e7b0250fd366fc512e18a50e460aeed31 (patch) | |
| tree | 66f447fdf25e3d010ae8b848a319aa4e6c2b1ca3 /editor.h | |
| parent | f34c99b1d5337d402c049af21c9ec8f1fe6ef02a (diff) | |
| download | vis-ec7be68e7b0250fd366fc512e18a50e460aeed31.tar.gz vis-ec7be68e7b0250fd366fc512e18a50e460aeed31.tar.xz | |
Add some more API comments
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -140,14 +140,19 @@ void editor_window_vsplit(Editor*, const char *filename); /* focus the next / previous window */ void editor_window_next(Editor*); void editor_window_prev(Editor*); + +/* display a user prompt with a certain title */ +void editor_prompt_show(Editor *vis, const char *title); +/* hide the user prompt if it is currently shown */ +void editor_prompt_hide(Editor *vis); /* return the content of the command prompt in a malloc(3)-ed string * which the call site has to free. */ char *editor_prompt_get(Editor *vis); /* replace the current command line content with the one given */ void editor_prompt_set(Editor *vis, const char *line); -void editor_prompt_show(Editor *vis, const char *title); -void editor_prompt_hide(Editor *vis); +/* register a callback which is called whenever the statusbar needs to + * be redrawn */ void editor_statusbar_set(Editor*, void (*statusbar)(EditorWin*)); /* look up a curses color pair for the given combination of fore and |
