From: Ali Gholami Rudi Date: Thu, 11 Apr 2013 09:34:57 +0000 (+0430) Subject: fbpdf: add d command to sleep X-Git-Url: https://repo.or.cz/w/fbpdf.git/commitdiff_plain/262662b256aa261c7eb5b06b4018591ce2dd6d44 fbpdf: add d command to sleep I used this command locally almost since I started fbpad; when using fbpad, fbpdf can draw a pdf page on another fbpad tag. This makes it possible to write notes in a multi-window editor, while part of the pdf page is visible. --- diff --git a/README b/README index 5050186..1caa9eb 100644 --- a/README +++ b/README @@ -53,4 +53,5 @@ e reload current file f zoom to fit page height w zoom to fit page width W zoom to fit page contents horizontally +d sleep one second before the next command ============== ================================================ diff --git a/fbpdf.c b/fbpdf.c index 8ea7a8e..e8489f0 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -237,6 +237,9 @@ static void mainloop(void) case 'o': numdiff = num - getcount(num); break; + case 'd': + sleep(getcount(1)); + break; default: if (isdigit(c)) count = count * 10 + c - '0';