summaryrefslogtreecommitdiff
path: root/devel/tvision/files/patch-ncurses-mouse
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-11-10 20:50:12 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-11-10 20:50:12 +0000
commitfc31b9cbe7613046c365360fc1b03ad35cedf152 (patch)
tree5505e8d4fccc1f66c1dd165d52e28aa2d3b5dc21 /devel/tvision/files/patch-ncurses-mouse
parentUpdate pkg-descr (diff)
* Integrate tvision-0.8-timeout.patch from PR: 71544
** Don't use alarms and signals, but use the timeout-feature of ncurses. Submitted by: Erling Jacobsen <linuxcub@email.dk> * Don't patch a sourcefile twice, move patch-ncurses-mouse into patch-lib::system.cc * As gcc33 is broken on AMD64 use gcc34 there * Bump PORTREVISION
Notes
Notes: svn path=/head/; revision=121333
Diffstat (limited to 'devel/tvision/files/patch-ncurses-mouse')
-rw-r--r--devel/tvision/files/patch-ncurses-mouse112
1 files changed, 0 insertions, 112 deletions
diff --git a/devel/tvision/files/patch-ncurses-mouse b/devel/tvision/files/patch-ncurses-mouse
deleted file mode 100644
index 3d4e81633072..000000000000
--- a/devel/tvision/files/patch-ncurses-mouse
+++ /dev/null
@@ -1,112 +0,0 @@
-This enables ncurses mouse support, which was broken (it seemed to depend
-on gpm in an unhealthy way).
-
-diff -ur tvision-0.8-orig/lib/system.cc lib/system.cc
---- tvision-0.8-orig/lib/system.cc Wed Jul 21 20:44:59 2004
-+++ lib/system.cc Wed Jul 21 21:14:29 2004
-@@ -709,6 +709,10 @@
- * Reads a key from the keyboard.
- */
- #ifdef NCURSES_MOUSE_VERSION
-+static void msInit();
-+static void msClose();
-+static void msSuspend();
-+static void msResume();
- static void msHandle();
- #endif
-
-@@ -1139,6 +1143,28 @@
- */
-
- #ifdef NCURSES_MOUSE_VERSION
-+static mmask_t orig_mousemask = 0;
-+
-+static void msInit()
-+{
-+ mmask_t m = mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, &orig_mousemask);
-+}
-+
-+static void msClose()
-+{
-+ mmask_t m = mousemask(orig_mousemask, NULL);
-+}
-+
-+static void msSuspend()
-+{
-+ mmask_t m = mousemask(0, NULL);
-+}
-+
-+static void msResume()
-+{
-+ mmask_t m = mousemask(ALL_MOUSE_EVENTS | REPORT_MOUSE_POSITION, NULL);
-+}
-+
- static void msHandle()
- {
- TEvent event;
-@@ -1738,6 +1764,10 @@
- TScreen::drawMouse(0);
- #ifdef ENABLE_GPM
- gpmClose();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msClose();
-+#endif
- #endif
- stopcurses();
- #ifdef ENABLE_VCS
-@@ -1925,6 +1955,10 @@
- startcurses(); /* curses stuff */
- #ifdef ENABLE_GPM
- gpmInit();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msInit();
-+#endif
- #endif
- /* catch useful signals */
-
-@@ -1958,6 +1992,10 @@
- startcurses();
- #ifdef ENABLE_GPM
- gpmResume();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msResume();
-+#endif
- #endif
- doRepaint++;
- }
-@@ -1966,6 +2004,10 @@
- {
- #ifdef ENABLE_GPM
- gpmSuspend();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msSuspend();
-+#endif
- #endif
- stopcurses();
- }
-@@ -1993,6 +2035,10 @@
- */
- #ifdef ENABLE_GPM
- gpmSuspend();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msSuspend();
-+#endif
- #endif
- clear(); /* blank the screen */
- refresh(); /* this is necessary */
-@@ -2000,6 +2046,10 @@
- startcurses();
- #ifdef ENABLE_GPM
- gpmResume();
-+#else
-+#ifdef NCURSES_MOUSE_VERSION
-+ msResume();
-+#endif
- #endif
- doResize = 0;
- winsize win;