diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 16:42:12 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-12 17:38:40 +0200 |
| commit | ad1cea9e79f191d6efb8ba7ba183c94c63e56e37 (patch) | |
| tree | 03f6b36b1383ff6aded36e6d4bd0453d5a45ace3 /editor.h | |
| parent | ec7be68e7b0250fd366fc512e18a50e460aeed31 (diff) | |
| download | vis-ad1cea9e79f191d6efb8ba7ba183c94c63e56e37.tar.gz vis-ad1cea9e79f191d6efb8ba7ba183c94c63e56e37.tar.xz | |
Add facility to display a message to the user
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -95,6 +95,7 @@ struct Editor { Syntax *syntaxes; /* NULL terminated array of syntax definitions */ Register registers[REG_LAST]; /* register used for copy and paste */ Prompt *prompt; /* used to get user input */ + char info[255]; /* a user message currently being displayed */ Regex *search_pattern; /* last used search pattern */ void (*windows_arrange)(Editor*); /* current layout which places the windows */ void (*statusbar)(EditorWin*); /* configurable user hook to draw statusbar */ @@ -151,6 +152,10 @@ 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); +/* display a message to the user */ +void editor_info_show(Editor*, const char *msg, ...); +void editor_info_hide(Editor*); + /* register a callback which is called whenever the statusbar needs to * be redrawn */ void editor_statusbar_set(Editor*, void (*statusbar)(EditorWin*)); |
