From ad1cea9e79f191d6efb8ba7ba183c94c63e56e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 12 Sep 2014 16:42:12 +0200 Subject: Add facility to display a message to the user --- editor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 1b94d78..ef1b4d3 100644 --- a/editor.h +++ b/editor.h @@ -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*)); -- cgit v1.2.3