about summary refs log tree commit diff stats
path: root/src/LYCurses.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-07-17 03:30:30 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2000-07-17 03:30:30 -0400
commit3f6f71189bc39edb970df722688fb4a6bf2bdfe4 (patch)
treeb53d87e5651c2013b53f1238f60aee74b251a90a /src/LYCurses.h
parentfe76940414337a9058df2d426bf5527154ca283a (diff)
downloadlynx-snapshots-3f6f71189bc39edb970df722688fb4a6bf2bdfe4.tar.gz
snapshot of project "lynx", label v2-8-4dev_5
Diffstat (limited to 'src/LYCurses.h')
-rw-r--r--src/LYCurses.h33
1 files changed, 21 insertions, 12 deletions
diff --git a/src/LYCurses.h b/src/LYCurses.h
index 21934a56..f7be0924 100644
--- a/src/LYCurses.h
+++ b/src/LYCurses.h
@@ -47,7 +47,15 @@
 
 #ifdef USE_SLANG
 #include <slang.h>
-#define WINDOW void
+
+#undef WINDOW
+typedef struct {
+    int	top_y;
+    int left_x;
+    int height;
+    int width;
+} WINDOW;
+
 #define waddstr(w,s) addstr(s)
 
 #ifndef ACS_UARROW  
@@ -158,10 +166,6 @@
 # endif /* VMS && __GNUC__ */
 #endif /* HAVE_CONFIG_H */
 
-#if defined(NCURSES) || defined(PDCURSES)
-extern void LYsubwindow PARAMS((WINDOW * param));
-#endif /* NCURSES */
-
 /*
  * PDCurses' mouse code does nothing in the DJGPP configuration.
  */
@@ -176,12 +180,17 @@ extern void LYsubwindow PARAMS((WINDOW * param));
 #define USE_MOUSE 1
 #endif
 
-#ifdef VMS
-extern void VMSbox PARAMS((WINDOW *win, int height, int width));
+#endif /* USE_SLANG */
+
+#ifdef USE_SLANG
+#define LYstopPopup() /* nothing */
 #else
+extern void LYsubwindow PARAMS((WINDOW * param));
+#define LYstopPopup() LYsubwindow(0)
+#endif /* NCURSES */
+
 extern void LYbox PARAMS((WINDOW *win, BOOLEAN formfield));
-#endif /* VMS */
-#endif /* USE_SLANG */
+extern WINDOW *LYstartPopup PARAMS((int top_y, int left_x, int height, int width));
 
 /*
  * Useful macros not in PDCurses or very old ncurses headers.
@@ -247,6 +256,7 @@ extern void LYstartTargetEmphasis NOPARAMS;
 extern void LYstopTargetEmphasis NOPARAMS;
 extern void LYtouchline PARAMS((int row));
 extern void LYwaddnstr PARAMS((WINDOW *w, CONST char *s, size_t len));
+extern void LYpaddstr PARAMS((WINDOW *w, int width, CONST char *s));
 
 #define LYaddstr(s)      LYwaddnstr(stdscr, s, strlen(s))
 #define LYaddnstr(s,len) LYwaddnstr(stdscr, s, len)
@@ -310,9 +320,6 @@ extern unsigned int Lynx_Color_Flags;
 /*
  *  Map some curses functions to slang functions.
  */
-#ifndef WINDOW
-#define WINDOW void
-#endif
 #define stdscr NULL
 #ifdef SLANG_MBCS_HACK
 extern int PHYSICAL_SLtt_Screen_Cols;
@@ -552,4 +559,6 @@ extern void lynx_stop_all_colors NOPARAMS;
 #define LYHideCursor() move((LYlines - 1), (LYcols - 2))
 #endif
 
+extern void LYstowCursor PARAMS((WINDOW * win, int row, int col));
+
 #endif /* LYCURSES_H */