wok-next diff busybox/stuff/patches/scriptreplay.u @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents 2ef4101ba8f7
children
line diff
     1.1 --- a/busybox/stuff/patches/scriptreplay.u	Fri Sep 29 20:57:09 2017 +0300
     1.2 +++ b/busybox/stuff/patches/scriptreplay.u	Tue Sep 01 10:44:52 2020 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4 ---- busybox-1.26/util-linux/scriptreplay.c
     1.5 -+++ busybox-1.26/util-linux/scriptreplay.c
     1.6 -@@ -18,10 +18,20 @@
     1.7 +--- busybox-1.31/util-linux/scriptreplay.c
     1.8 ++++ busybox-1.31/util-linux/scriptreplay.c
     1.9 +@@ -17,10 +17,20 @@
    1.10   
    1.11   //kbuild:lib-$(CONFIG_SCRIPTREPLAY) += scriptreplay.o
    1.12   
    1.13 @@ -12,7 +12,7 @@
    1.14  +//config:	  Tune replay speed with + - = space return hotkeys.
    1.15  +
    1.16   //usage:#define scriptreplay_trivial_usage
    1.17 - //usage:       "timingfile [typescript [divisor]]"
    1.18 + //usage:       "TIMINGFILE [TYPESCRIPT [DIVISOR]]"
    1.19   //usage:#define scriptreplay_full_usage "\n\n"
    1.20   //usage:       "Play back typescripts, using timing information"
    1.21  +//usage:	IF_SCRIPTREPLAY_HOTKEYS(
    1.22 @@ -21,7 +21,7 @@
    1.23   
    1.24   #include "libbb.h"
    1.25   
    1.26 -@@ -31,6 +41,10 @@
    1.27 +@@ -30,6 +40,10 @@
    1.28   	const char *script = "typescript";
    1.29   	double delay, factor = 1000000.0;
    1.30   	int fd;
    1.31 @@ -32,7 +32,7 @@
    1.32   	unsigned long count;
    1.33   	FILE *tfp;
    1.34   
    1.35 -@@ -48,6 +62,21 @@
    1.36 +@@ -47,6 +61,21 @@
    1.37   	while (fscanf(tfp, "%lf %lu\n", &delay, &count) == 2) {
    1.38   		usleep(delay * factor);
    1.39   		bb_copyfd_exact_size(fd, STDOUT_FILENO, count);