Package: sl Version: 3.03-16 Severity: minor Tags: patch Hi!
While watching sl I noticed that the cursor is still blinking. This is rather an annoyance, especially when calling sl-h which takes a fair amount of time to run past. The attached patch hides the cursor on starting and enables it on quitting again. Thanks, Rhonda -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages sl depends on: ii libc6 2.13-24 ii libncurses5 5.9-4 ii libtinfo5 5.9-4 sl recommends no packages. sl suggests no packages. -- no debconf information
diff -u sl-3.03/debian/changelog sl-3.03/debian/changelog --- sl-3.03/debian/changelog +++ sl-3.03/debian/changelog @@ -1,3 +1,10 @@ +sl (3.03-16.0) unstable; urgency=low + + * Add patch to hide cursor (modifying 40_apply_sl-h and adding + 60_add_curs_set) + + -- Gerfried Fuchs <rho...@debian.org> Sun, 08 Jan 2012 20:27:19 +0100 + sl (3.03-16) unstable; urgency=low * Upgrade to policy 3.8.0. diff -u sl-3.03/debian/patches/00list sl-3.03/debian/patches/00list --- sl-3.03/debian/patches/00list +++ sl-3.03/debian/patches/00list @@ -5,0 +6 @@ +60_add_curs_set diff -u sl-3.03/debian/patches/40_apply_sl-h.dpatch sl-3.03/debian/patches/40_apply_sl-h.dpatch --- sl-3.03/debian/patches/40_apply_sl-h.dpatch +++ sl-3.03/debian/patches/40_apply_sl-h.dpatch @@ -5,9 +5,9 @@ ## DP: apply sl-h. @DPATCH@ -diff -urNad sl-3.03~/Makefile sl-3.03/Makefile ---- sl-3.03~/Makefile 2008-12-27 20:05:20.000000000 +0900 -+++ sl-3.03/Makefile 2008-12-27 20:05:21.000000000 +0900 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/Makefile sl-3.03/Makefile +--- sl-3.03~/Makefile 2012-01-08 20:24:53.000000000 +0100 ++++ sl-3.03/Makefile 2012-01-08 20:24:53.000000000 +0100 @@ -7,12 +7,15 @@ # 2008/12/27 #========================================== @@ -26,9 +26,9 @@ + rm -f sl sl-h distclean:: clean -diff -urNad sl-3.03~/header.h sl-3.03/header.h ---- sl-3.03~/header.h 1970-01-01 09:00:00.000000000 +0900 -+++ sl-3.03/header.h 2008-12-27 20:05:21.000000000 +0900 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/header.h sl-3.03/header.h +--- sl-3.03~/header.h 1970-01-01 01:00:00.000000000 +0100 ++++ sl-3.03/header.h 2012-01-08 20:24:53.000000000 +0100 @@ -0,0 +1,15 @@ +/* * + * * @@ -45,10 +45,10 @@ +extern int end_gate(); +extern int x_gate(); +extern void end_proc(); -diff -urNad sl-3.03~/sl-h.c sl-3.03/sl-h.c ---- sl-3.03~/sl-h.c 1970-01-01 09:00:00.000000000 +0900 -+++ sl-3.03/sl-h.c 2008-12-27 20:05:21.000000000 +0900 -@@ -0,0 +1,750 @@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/sl-h.c sl-3.03/sl-h.c +--- sl-3.03~/sl-h.c 1970-01-01 01:00:00.000000000 +0100 ++++ sl-3.03/sl-h.c 2012-01-08 20:26:10.000000000 +0100 +@@ -0,0 +1,752 @@ +/*======================================== + * sl.c: + * Copyright 1993,1998 Toyoda Masashi @@ -210,6 +210,7 @@ +#endif + leaveok(stdscr, TRUE); + scrollok(stdscr, FALSE); ++ (void)curs_set(0); + + DIREC = RTOL; + p = 3 * COLS / 10; @@ -275,6 +276,7 @@ + end_gate(p); + } + mvcur(0, COLS - 1, LINES - 1, 0); ++ (void)curs_set(1); + endwin(); + + return 0; @@ -799,9 +801,9 @@ + } + return 0; +} -diff -urNad sl-3.03~/sl-h.h sl-3.03/sl-h.h ---- sl-3.03~/sl-h.h 1970-01-01 09:00:00.000000000 +0900 -+++ sl-3.03/sl-h.h 2008-12-27 20:05:21.000000000 +0900 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/sl-h.h sl-3.03/sl-h.h +--- sl-3.03~/sl-h.h 1970-01-01 01:00:00.000000000 +0100 ++++ sl-3.03/sl-h.h 2012-01-08 20:24:53.000000000 +0100 @@ -0,0 +1,237 @@ +/*======================================== + * sl.h: Text data of SL version 3.01 @@ -1040,9 +1042,9 @@ + D51WHL31, D51WHL32, D51WHL33, D51DEL}, + {D51STR1, D51STR2, D51STR3, D51STR4, D51STR5, D51STR6, D51STR7, + D51WHL21, D51WHL22, D51WHL23, D51DEL}}; -diff -urNad sl-3.03~/sl.c sl-3.03/sl.c ---- sl-3.03~/sl.c 2008-12-27 20:05:20.000000000 +0900 -+++ sl-3.03/sl.c 2008-12-27 20:05:21.000000000 +0900 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/sl.c sl-3.03/sl.c +--- sl-3.03~/sl.c 2012-01-08 20:24:53.000000000 +0100 ++++ sl-3.03/sl.c 2012-01-08 20:24:53.000000000 +0100 @@ -48,7 +48,7 @@ void option(char *str) @@ -1095,9 +1097,9 @@ + + return 0; } -diff -urNad sl-3.03~/sl.h sl-3.03/sl.h ---- sl-3.03~/sl.h 1994-01-19 02:23:24.000000000 +0900 -+++ sl-3.03/sl.h 2008-12-27 20:05:21.000000000 +0900 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/sl.h sl-3.03/sl.h +--- sl-3.03~/sl.h 2012-01-08 19:51:55.000000000 +0100 ++++ sl-3.03/sl.h 2012-01-08 20:24:53.000000000 +0100 @@ -102,3 +102,9 @@ #define LCAR6 " (O) (O) " only in patch2: unchanged: --- sl-3.03.orig/debian/patches/60_add_curs_set.dpatch +++ sl-3.03/debian/patches/60_add_curs_set.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 60_add_curs_set.dpatch by Gerfried Fuchs <rho...@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Hide cursor. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' sl-3.03~/sl.c sl-3.03/sl.c +--- sl-3.03~/sl.c 2012-01-08 19:48:46.000000000 +0100 ++++ sl-3.03/sl.c 2012-01-08 19:49:42.000000000 +0100 +@@ -73,6 +73,7 @@ + noecho(); + leaveok(stdscr, TRUE); + scrollok(stdscr, FALSE); ++ (void)curs_set(0); + + for (x = COLS - 1; ; --x) { + if (LOGO == 0) { +@@ -84,6 +85,7 @@ + usleep(20000); + } + mvcur(0, COLS - 1, LINES - 1, 0); ++ (void)curs_set(1); + endwin(); + } +