From 463a48b612d51b694894f867ac56dff9d60e6440 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 20 Jan 2013 20:32:28 +0100 Subject: m + using chapter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Adjbacklight.java | 4 +++- adjbacklight.texinfo | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Adjbacklight.java b/Adjbacklight.java index 597b575..62b2701 100644 --- a/Adjbacklight.java +++ b/Adjbacklight.java @@ -64,8 +64,10 @@ public class Adjbacklight if (max <= min) System.exit(127); - int step = (max - min) / 100; + int step = (max - min) / 200; int init = cur; + if (step == 0) + step = 1; System.out.print("\n\n\n\n\n\n"); print(min, max, init, cur, width); diff --git a/adjbacklight.texinfo b/adjbacklight.texinfo index 00c0f1d..b554b37 100644 --- a/adjbacklight.texinfo +++ b/adjbacklight.texinfo @@ -88,12 +88,26 @@ code. Just @code{sed -i s/200/400/g Adjbacklight.java}, if you want 0.25 % preci @cindex starting @cindex options @cindex arguments +@cindex@command{adjbacklight} +@cindex @option{-c} +@cindex @option{--copying} +@cindex @option{--copyright} +@cindex @option{-w} +@cindex @option{--warranty} + +@command{adjbacklight} can be started with @option{-c}, @option{--copying} or +@option{--copyright} for displaying copyright information, @option{-w} or +@option{--warranty} for displaying a warranty disclaimer. If any other options +is used, help information is displayed. + +To actually use the program, just execute @command{adjbacklight} without any +arguments. @node Using @chapter Using @cindex usage -@cindex keybord +@cindex keyboard @node Behind the scenes -- cgit v1.2.3-70-g09d2