pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/autocue Fix some nits and bugs, update to autocue...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c5efbcd913f
branches: trunk
changeset: 507194:7c5efbcd913f
user: agc <agc%pkgsrc.org@localhost>
date: Sun Jan 29 00:11:15 2006 +0000
description:
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:
misc/autocue/Makefile | 4 ++--
misc/autocue/files/autocue.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r 596d4650379d -r 7c5efbcd913f misc/autocue/Makefile
--- a/misc/autocue/Makefile Sat Jan 28 23:21:35 2006 +0000
+++ b/misc/autocue/Makefile Sun Jan 29 00:11:15 2006 +0000
@@ -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 -r 596d4650379d -r 7c5efbcd913f misc/autocue/files/autocue.c
--- a/misc/autocue/files/autocue.c Sat Jan 28 23:21:35 2006 +0000
+++ b/misc/autocue/files/autocue.c Sun Jan 29 00:11:15 2006 +0000
@@ -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 @@
SlowDenom = 3,
MediumDenom = 7,
- FastDenom = 10
+ FastDenom = 12
};
static int speed;
@@ -79,7 +79,7 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index