diff options
author | agc <agc@pkgsrc.org> | 2006-01-29 00:11:15 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2006-01-29 00:11:15 +0000 |
commit | 49a712066bff77a3b8c9c5205cfa0fc428880d40 (patch) | |
tree | 48a17683ce5f234c0c979d3856206354b1d815b0 /misc/autocue | |
parent | 68378d59a02c689e6d5c0c34d801b051efaa8b8e (diff) | |
download | pkgsrc-49a712066bff77a3b8c9c5205cfa0fc428880d40.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/autocue')
-rw-r--r-- | misc/autocue/Makefile | 4 | ||||
-rw-r--r-- | misc/autocue/files/autocue.c | 10 |
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); |