aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-ncurses.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 19:52:31 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 19:52:31 +0100
commit51e123544bff3ca0bdd8f6ba6a1c507b57071ca4 (patch)
tree0b3c68e7520dc310a49cee0b6dc1abd042143224 /interface-ncurses.h
parent5fe8298dec3736a2169719af9f0edf8592f3f7b6 (diff)
downloadsciteco-51e123544bff3ca0bdd8f6ba6a1c507b57071ca4.tar.gz
support stdio for curses interface
* ./sciteco commandline help works now * messages issued during batch-mode macro processing are written to stdout/stderr * output can be redirected
Diffstat (limited to 'interface-ncurses.h')
-rw-r--r--interface-ncurses.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/interface-ncurses.h b/interface-ncurses.h
index a9bcad5..9b938a2 100644
--- a/interface-ncurses.h
+++ b/interface-ncurses.h
@@ -1,6 +1,8 @@
#ifndef __INTERFACE_NCURSES_H
#define __INTERFACE_NCURSES_H
+#include <stdarg.h>
+
#include <glib.h>
#include <ncurses.h>
@@ -11,6 +13,9 @@
#include "interface.h"
extern class InterfaceNCurses : public Interface {
+ SCREEN *screen;
+ FILE *screen_tty;
+
Scintilla *sci;
WINDOW *sci_window;
@@ -26,7 +31,7 @@ public:
InterfaceNCurses();
~InterfaceNCurses();
- void msg(MessageType type, const gchar *fmt, ...) G_GNUC_PRINTF(3, 4);
+ void vmsg(MessageType type, const gchar *fmt, va_list ap);
inline sptr_t
ssm(unsigned int iMessage, uptr_t wParam = 0, sptr_t lParam = 0)