📄 zgv.1
字号:
.RSToggle shuffling (randomising) of slideshows. See \fBSlideshows\fR..PP.RE`\fBL\fR'.RSToggle looping in slideshows. See \fBSlideshows\fR..PP.RE`\fBAlt-m\fR'.RSToggle use of `magic numbers' (identifiers at the start of a file) topick which files in a directory to list in the selector. The usualmethod of doing this is based on the file's extension (see \fBFile TypeIdentification\fR, which is much faster but won't catch e.g. files withoutextensions..PP.RE`\fBc\fR'.RSIf the file selector is running in 16-colour mode (it usually doesn'tunless zgv has no choice --- see \fB16-colour File Selector\fR), togglebetween greyscale (default) and colour thumbnails..RE.PP.SH "OTHER FILE SEL COMMANDS"There are some other commands in the file selector which don't easilyfit anywhere else. Here they are:.PP`\fBDelete\fR'.RSDelete (only) the file the cursor is on. Asks for confirmation (unlessthis is disabled, see \fBConfiguring zgv\fR). It also deletes the file'sthumbnail, if it has one. See \fBCopying/Moving/Deleting Files\fR, for amore general command which deletes all tagged files..PP.RE`\fB:\fR'.RSShow various details about the file the cursor is on; the (full)filename, the size in kilobytes, width/height if recorded in anythumbnail, last-modified date, etc. You can also use the `\fB;\fR' key toget this..PP.RE`\fBAlt-f\fR'.RSShow the number of (picture) files in the current directory, and thenumber of tagged files (see \fBTagging\fR)..PP.RE`\fB^L\fR'.RS.RE`\fB^R\fR'.RSRescan the directory contents, and redraw the screen..PP.RE`\fBK\fR'.RSKill mouse --- disable mouse for the rest of this zgv session. (Itprompts to check if you really want to do so.) This can be useful if youhave the mouse enabled in a config file, so that zgv always starts upwith the mouse on, but you're currently using just the keyboard. In sucha situation the mouse pointer can be a bit annoying. This command letsyou disable the mouse completely for the current zgv process..RE.PP.SH "SHOWING MORE FILES"The file selector normally runs at a relatively low resolution(640x480), meaning it can only show 20 thumbnails at once. This keepsthe selector running at a reasonable speed even on slow machines..PPIf you have a faster machine, however, and your video card has256-colour modes with higher resolutions than 640x480 (see \fBVideoModes\fR), you may want to see more thumbnails onscreen at once..PP(zgv tends not to look as `right' in such modes as it does in the usual640x480, but apart from that it's much the same.).PP`\fBF1\fR'.RSSelect 640x480 mode. This is the default..PP.RE`\fBF2\fR'.RSSelect 800x600 mode..PP.RE`\fBF3\fR'.RSSelect 1024x768 mode..PP.RE`\fBF4\fR'.RSSelect 1280x1024 mode..RE.PPIf you want to change the default mode used in the file selector, usethe \fIfs-start-mode\fR config file setting (see \fBConfiguring zgv\fR).For example, to use 800x600 by default, you'd use \fIfs-start-mode800 600 8\fR..PPNote these modes are subject to the same checks as in the viewer --- inparticular, this means that the file selector obeys the viewer's\fImode-good\fR, \fImode-bad\fR, etc. settings. See \fBConfigVariables\fR..PPFinally, if you have no 640x480 256-colour mode, or if\fIforce-fs-16col\fR has been set, the 640x480 16-colour mode is allthat is available..PP.SH "16-COLOUR FILE SELECTOR"The file selector normally operates in a 256-colour mode (by default,the 640x480 one). However, the original VGA cards didn't have this mode,and SVGA cards not supported by svgalib won't have it as far as zgv isconcerned either..PPFor such cards, zgv supports a more limited and slower file selectorwhich works in 640x480 16-colour mode. It should be easy to tell whichzgv is using --- if thumbnails appear in monochrome rather than colour(and the files are colour pictures ;-)) then it's running in 16-colourmode. (Another hint is that 16-colour mode has an extra border aroundthe edge of the screen which 256-colour mode probably won't have.).PPAs you might imagine, having 240 fewer colours makes things difficult.The default way of coping with this is the greyscale thumbnails (elevengrey levels are used), which are reasonably fast and quite faithful tothe originals. If you'd prefer less accurate --- but colour ---thumbnails (eight colours are used, with dithering and increasedcontrast), you can press `\fBc\fR' to toggle between the two, or set zgvup to default to using colour thumbnails instead with\fIfs-16col-colour-thumbnails on\fR in a config file(see \fBConfiguring zgv\fR)..PP(For those of you out there who have a 640x480 256-colour mode, but feelyou're missing out by not seeing this 16-colour file selector :-), youcan force zgv to use it by using the \fI--force-fs-16col\fR option.).PP.SH "THE VIEWER"When a picture is being shown onscreen, you're in the viewer. Thissection describes what you can do while viewing the picture..PP.SH "EXITING THE VIEWER"Exiting the viewer is simple:.PP`\fBEsc\fR'.RS.RE`\fBx\fR'.RSExit the viewer..PPIf you got to the viewer from the file selector, you're returned there;if you bypassed the file selector (by running zgv with a file (or files)to view specified on the command-line --- see \fBOptions\fR) thenexiting the viewer also exits zgv..RE.PP.SH "BIG PICTURES"A picture may well be too large to fit entirely on the screen. There aretwo general ways to see the whole of the picture, and in addition tothose, you may be able to fit more on by choosing a different video mode(see \fBVideo Modes\fR), either manually or by using auto-mode-fit..PP(For multi-resolution Photo-CD files, there is yet another alternativeapproach (see \fBSupported File Formats\fR).).PP.SS "Scrolling"Scrolling is the default approach to handling big pictures in zgv. Whenthe viewer is started up, the top-left of the picture is shown --- youcan use the cursor keys (and many others) to move around the rest of thepicture..PP`\fBCursor Up\fR'.RS.RE`\fBK\fR'.RS.RE`\fBQ\fR'.RSMove up 100 pixels. `\fBk\fR' and `\fBq\fR' move up 10 pixels..PP.RE`\fBCursor Down\fR'.RS.RE`\fBJ\fR'.RS.RE`\fBA\fR'.RSMove down 100 pixels. `\fBj\fR' and `\fBa\fR' move down 10 pixels..PP.RE`\fBCursor Left\fR'.RS.RE`\fBH\fR'.RS.RE`\fBO\fR'.RSMove left 100 pixels. `\fBh\fR' and `\fBo\fR' move left 10 pixels..PP.RE`\fBCursor Right\fR'.RS.RE`\fBL\fR'.RS.RE`\fBP\fR'.RSMove right 100 pixels. `\fBl\fR' and `\fBp\fR' move right 10 pixels..PP.RE`\fBPage Up\fR'.RS.RE`\fB^U\fR'.RSMove up (nearly) a screenful. (It moves 90% of the screen height.).PP.RE`\fBPage Down\fR'.RS.RE`\fB^V\fR'.RSMove down (nearly) a screenful..PP.RE`\fB-\fR'.RSMove left (nearly) a screenful. (It moves 90% of the screen width.).PP.RE`\fB=\fR'.RSMove right (nearly) a screenful..PP.RE`\fBHome\fR'.RS.RE`\fB^A\fR'.RSMove to the top-left of the picture..PP.RE`\fBEnd\fR'.RS.RE`\fB^E\fR'.RSMove to the bottom-right of the picture..RE.PP.SS "Zoom Mode"An alternative way of viewing the whole picture, one which lets you seethe picture onscreen all at once no matter how big (or small) it is, iszoom mode..PPZoom mode's name derives from the idea of `zooming' a small file up tofit the screen. But in reality, it is more often used to reduce a largefile to fit the screen..PPZoom mode is not the default, and has to be enabled. Once enabled, itstays on until you turn it off again..PPBy default, the way zoom mode reduces a file to fit the screen is(relatively) quick but harsh, and may make the picture look ugly.Enabling \fIvkludge\fR smoothes the picture, giving a better and moreaccurate result, but takes longer. It too is not the default, but stayson until turned off again..PP`\fBz\fR'.RSToggle zoom mode..PP.RE`\fBAlt-r\fR'.RSWhen in zoom mode, only \fIreduce\fR pictures to fit. This can beuseful when going through a lot of unpredictably-sized pictures, as itmeans that you can see all of a big picture easily without also meaningthat tiny little icons assume a scale of Biblical proportions. :-).PP.RE`\fBv\fR'.RSToggle \fIvkludge\fR, which enables appropriate smoothing when zoommode is reducing a picture to fit the screen. It also enables similarsmoothing for non-zoomed pictures in 320x400x8 and 360x480x8 modes.See \fBVirtual Modes\fR..PP.RE`\fBn\fR'.RSResume `normal' display --- disables zoom mode (and scaling mode)..RE.PP.SS "Auto-mode-fit"If it seems strange to you to use scrolling or zoom mode to see thewhole picture when you could just use a different video mode (to changethe size of the pixels displayed onscreen), you may find auto-mode-fituseful..PPIf enabled, and when a picture is loaded, the current mode isautomatically switched to the `smallest' mode which is both wider andtaller than the picture is (or of equal width/height). In other words,the (theoretically) most appropriate mode. If no mode can fit thepicture onscreen, the `largest' mode is chosen..PPAuto-mode-fit is not the default, so you have to enable it if you wantto use it..PP`\fBZ\fR'.RSToggle auto-mode-fit mode. Usually this only takes effect when a pictureis loaded (so that manual mode switching still works), but when youenable it zgv does a one-off auto-mode-fit on the current picture. (Notealso that disabling it leaves you in the current mode, so that has noobvious effect; for this reason, the picture is redrawn (as a visual cuethat you haven't just been ignored :-)).).RE.PPI should point out that all the mode-switching can be a bit hard on yourmonitor, so even if you really like this option you might not want toenable it all the time (e.g. in a config file), but instead only turn iton when you `need' it. Still, it's up to you..PPCertain modes are excluded from those chosen by auto-mode-fit. Inparticular, no 320x200 mode is ever chosen, nor is 320x400x8. Theseexceptions are made due to the unusual aspect ratio. 640x480x4 isexcluded due to the slightly odd way it works, which makes it ill-suitedto automatic selection. 360x480x8 \fIis\fR considered, despite theaspect ratio, if no 640x480x8 mode exists..PP.SH "SCALING"You can scale a picture --- this makes it appear larger onscreen. zgvacts exactly as if the scaled-up picture were the real picture; forexample, the cursors scroll around in steps of 100 scaled-up pixels,even if this means moving a fraction of a pixel in the original picture..PPThe main limitation of scaling is that you can only scale up by integervalues, so you can only make each pixel in the image twice as wide/high, orthree times as wide/high, or four times, and so on..PP(It may seem odd saying e.g. `twice as wide/high' rather than `twice thesize', but technically `twice the size' would be referring to scaling upthe width (and height) by about 1.414...).PPNormally, zgv does no scaling, which could be considered a ratio of 1:1.Scaling up increases that ratio. How it is increased depends on whichkey you use:.PP`\fBs\fR'.RSIncrease the ratio by adding one --- this leads to ratios of 2:1, 3:1,4:1....PP.RE`\fBd\fR'.RSIncrease the ratio by doubling it --- leads to ratios of 2:1, 4:1,8:1....RE.PPUsually `\fBd\fR' is more useful..PPThere are similar commands to decrease the ratio (when it reaches 1:1scaling is disabled):.PP`\fBS\fR'.RSDecrease the ratio by subtracting one..PP.RE`\fBD\fR'.RSDecrease the ratio by halving it..RE.PPThe scaling ratio is never decreased below 1:1. It is also neverincreased beyond 512:1, where zgv stops so that pixels may be conservedfor future generations. :-).PPYou can undo the effect of scaling at any time by using `\fBn\fR' (whichalso disables zoom mode)..PPNormally, scaling works by simply making the pixels into larger andlarger squares (in effect), which remain the same colour. However, ifyou are using a 15/16/24/32-bit mode (see \fBVideo Modes\fR), you canenable a feature called `interpolation' which smoothly graduates thecolour change between the top-left corners of each pixel. This is\fIvery\fR slow, but looks nice..PP`\fBi\fR'.RSToggle interpolation in scaling mode..PP.RE`\fB!\fR'.RSToggle off-by-one interpolation (disabled by default). Using thisoff-by-one method gives incorrect results, but this can occasionally beuseful at ratios of 2:1 and 3:1 for relatively low-quality JPEGs..RE.PP(If you like the appearance of scaling with interpolation, you may alsobe interested in a program I wrote called \fIpnminterp\fR, which canscale up a PGM or PPM file while applying this effect.)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -