summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authoragc <agc>2006-01-29 00:11:15 +0000
committeragc <agc>2006-01-29 00:11:15 +0000
commitd439c540b09eeef1e138620ac27879b384a573b6 (patch)
tree48a17683ce5f234c0c979d3856206354b1d815b0 /misc
parentbd8eb3229c9e37043c8fd7bd628ccc66251acb43 (diff)
downloadpkgsrc-d439c540b09eeef1e138620ac27879b384a573b6.tar.gz
Fix some nits and bugs, update to autocue-20060129:
+ make the output buffer the same size as the input buffer, useful for longer paragraphs + separate paragraphs with a " -" line + make fast scrolling a bit faster
Diffstat (limited to 'misc')
-rw-r--r--misc/autocue/Makefile4
-rw-r--r--misc/autocue/files/autocue.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/misc/autocue/Makefile b/misc/autocue/Makefile
index 9aa94e25c53..f307f915fa6 100644
--- a/misc/autocue/Makefile
+++ b/misc/autocue/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/01/28 20:47:22 agc Exp $
+# $NetBSD: Makefile,v 1.2 2006/01/29 00:11:15 agc Exp $
#
-DISTNAME= autocue-20060128
+DISTNAME= autocue-20060129
CATEGORIES= misc
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/misc/autocue/files/autocue.c b/misc/autocue/files/autocue.c
index 238d466a64e..8e9ea2f304d 100644
--- a/misc/autocue/files/autocue.c
+++ b/misc/autocue/files/autocue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: autocue.c,v 1.1.1.1 2006/01/28 20:47:22 agc Exp $ */
+/* $NetBSD: autocue.c,v 1.2 2006/01/29 00:11:15 agc Exp $ */
/*
* Copyright © 2006 Alistair Crooks. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright © 2006 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: autocue.c,v 1.1.1.1 2006/01/28 20:47:22 agc Exp $");
+__RCSID("$NetBSD: autocue.c,v 1.2 2006/01/29 00:11:15 agc Exp $");
#endif
#include <err.h>
@@ -51,7 +51,7 @@ enum {
SlowDenom = 3,
MediumDenom = 7,
- FastDenom = 10
+ FastDenom = 12
};
static int speed;
@@ -79,7 +79,7 @@ static void
showbuffer(char *buf, int cc, int maxcut)
{
static int cut;
- char cmd[BUFSIZ];
+ char cmd[BUFSIZ * 20];
FILE *pp;
int s;
@@ -88,7 +88,7 @@ showbuffer(char *buf, int cc, int maxcut)
errx(EXIT_FAILURE, "can't open pipe to xcb");
}
buf[cc] = 0x0;
- (void) fprintf(pp, "%s", buf);
+ (void) fprintf(pp, "%s - \n", buf);
(void) pclose(pp);
s = cc / speed;
printf("%.20s...\nBuffer contents are in cut buffer %d, sleeping %d secs\a\n", buf, cut, s);