aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-ncurses.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 21:03:25 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 21:03:25 +0100
commiteb51ff93c5c54dfb82e607b4843f9160523076b7 (patch)
treef6db2c0e026508cb78128c994c02f216639f731d /interface-ncurses.h
parent8c27f0437054497360a8358c5e3fb516f1eaa996 (diff)
downloadsciteco-eb51ff93c5c54dfb82e607b4843f9160523076b7.tar.gz
NCurses interface: support terminal resizing
* currently, the message line is not remembered and reset on termresize * any open popup window will be drawn over by the other windows
Diffstat (limited to 'interface-ncurses.h')
-rw-r--r--interface-ncurses.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface-ncurses.h b/interface-ncurses.h
index 9b938a2..9469cfc 100644
--- a/interface-ncurses.h
+++ b/interface-ncurses.h
@@ -21,12 +21,15 @@ extern class InterfaceNCurses : public Interface {
WINDOW *sci_window;
WINDOW *msg_window;
WINDOW *cmdline_window;
+ gchar *cmdline_current;
WINDOW *popup_window;
GSList *popup_list;
gint popup_list_longest;
gint popup_list_length;
+ void resize_all_windows(void);
+
public:
InterfaceNCurses();
~InterfaceNCurses();
@@ -39,7 +42,7 @@ public:
return scintilla_send_message(sci, iMessage, wParam, lParam);
}
- void cmdline_update(const gchar *cmdline = "");
+ void cmdline_update(const gchar *cmdline = NULL);
void popup_add_filename(PopupFileType type,
const gchar *filename, bool highlight = false);