From d439c540b09eeef1e138620ac27879b384a573b6 Mon Sep 17 00:00:00 2001 From: agc Date: Sun, 29 Jan 2006 00:11:15 +0000 Subject: 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 --- misc/autocue/Makefile | 4 ++-- misc/autocue/files/autocue.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'misc') 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 @@ -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); -- cgit v1.2.3