wok-current rev 19343

Up busybox (1.25.0), again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 20 13:38:22 2016 +0200 (2016-07-20)
parents 62af77d35692
children a5b18752755f
files busybox/stuff/busybox-1.25-scriptreplay.u
line diff
     1.1 --- a/busybox/stuff/busybox-1.25-scriptreplay.u	Wed Jul 20 09:51:19 2016 +0200
     1.2 +++ b/busybox/stuff/busybox-1.25-scriptreplay.u	Wed Jul 20 13:38:22 2016 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  --- busybox-1.25/util-linux/scriptreplay.c
     1.5  +++ busybox-1.25/util-linux/scriptreplay.c
     1.6 -@@ -8,6 +8,13 @@
     1.7 +@@ -8,10 +8,20 @@
     1.8    *
     1.9    */
    1.10   
    1.11 @@ -9,12 +9,19 @@
    1.12  +//config:	default n
    1.13  +//config:	depends on SCRIPTREPLAY
    1.14  +//config:	help
    1.15 -+//config:	  Tune replay speed with +, -, =, space or return keys.
    1.16 ++//config:	  Tune replay speed with + - = space return hotkeys.
    1.17  +
    1.18   //usage:#define scriptreplay_trivial_usage
    1.19   //usage:       "timingfile [typescript [divisor]]"
    1.20   //usage:#define scriptreplay_full_usage "\n\n"
    1.21 -@@ -21,6 +28,10 @@
    1.22 + //usage:       "Play back typescripts, using timing information"
    1.23 ++//usage:	IF_SCRIPTREPLAY_HOTKEYS(
    1.24 ++//usage:       " and + - = space return hotkeys"
    1.25 ++//usage:	)
    1.26 + 
    1.27 + #include "libbb.h"
    1.28 + 
    1.29 +@@ -21,6 +31,10 @@
    1.30   	const char *script = "typescript";
    1.31   	double delay, factor = 1000000.0;
    1.32   	int fd;
    1.33 @@ -25,7 +32,7 @@
    1.34   	unsigned long count;
    1.35   	FILE *tfp;
    1.36   
    1.37 -@@ -38,6 +49,21 @@
    1.38 +@@ -38,6 +52,21 @@
    1.39   	while (fscanf(tfp, "%lf %lu\n", &delay, &count) == 2) {
    1.40   		usleep(delay * factor);
    1.41   		bb_copyfd_exact_size(fd, STDOUT_FILENO, count);