From 92744db63979c75138779e816a9290057fa92f11 Mon Sep 17 00:00:00 2001 From: Stéphane Aulery Date: Thu, 12 Jan 2012 02:03:52 +0100 Subject: Fix usage of j and k commands * fbi.man: fix small typos and indicate missed j and k commands * fbi.c: exchange j and k commands to obtain a more natural/expected control (vim like). --- fbi.c | 8 ++++---- fbi.man | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fbi.c b/fbi.c index bcac299..547c1d0 100644 --- a/fbi.c +++ b/fbi.c @@ -944,8 +944,8 @@ svga_show(struct flist *f, struct flist *prev, f->left += h_steps; } else if (0 == strcmp(key, "\x1b[5~") || - 0 == strcmp(key, "j") || - 0 == strcmp(key, "J")) { + 0 == strcmp(key, "k") || + 0 == strcmp(key, "K")) { if (textreading && f->top > 0) { redraw = 1; f->top -= f->text_steps; @@ -955,8 +955,8 @@ svga_show(struct flist *f, struct flist *prev, } } else if (0 == strcmp(key, "\x1b[6~") || - 0 == strcmp(key, "k") || - 0 == strcmp(key, "K") || + 0 == strcmp(key, "j") || + 0 == strcmp(key, "J") || 0 == strcmp(key, "n") || 0 == strcmp(key, "N")) { if (textreading && f->top < (int)(img->i.height - fb_var.yres)) { diff --git a/fbi.man b/fbi.man index 46fc8c6..6facacf 100644 --- a/fbi.man +++ b/fbi.man @@ -1,4 +1,4 @@ -.TH FBI 1 "(c) 1999-2004 Gerd Knorr" "FBI 2.07" "Linux framebuffer imageviewer" +.TH FBI 1 "(c) 1999-2012 Gerd Knorr" "FBI 2.08" "Linux framebuffer imageviewer" \# \# .SH NAME @@ -152,10 +152,10 @@ In the following commands, \fIi\fP is a numerical argument. \fBLEFT_ARROW\fP, \fBRIGHT_ARROW\fP, \fBUP_ARROW\fP, \fBDOWN_ARROW\fP Scroll large images. .TP -\fBPREV_SCREEN\fP +\fBPREV_SCREEN\fP, \fBk\fP Previous image. .TP -\fBNEXT_SCREEN\fP, \fBSPACE\fP +\fBNEXT_SCREEN\fP, \fBSPACE\fP, \fBj\fP Next image. .TP \fBRETURN\fP @@ -234,7 +234,7 @@ It does a lossless transformation of the image. \# \# .SH BUGS -.BR fbi +.BR Fbi needs rw access to the framebuffer devices (\fI/dev/fbN\fP), i.e you (our your admin) have to make sure .BR fbi @@ -273,7 +273,7 @@ Gerd Knorr \# \# .SH COPYRIGHT -Copyright (c) 1999-2004 Gerd Knorr +Copyright (c) 1999-2012 Gerd Knorr .P This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -- cgit