1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483
|
<!-- Creator : groff version 1.22.4 -->
<!-- CreationDate: Sun May 19 12:02:42 2024 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
h1 { text-align: center }
</style>
<title>FIM</title>
</head>
<body>
<h1 align="center">FIM</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#USAGE">USAGE</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#PROGRAM RETURN STATUS">PROGRAM RETURN STATUS</a><br>
<a href="#COMMON KEYS AND COMMANDS">COMMON KEYS AND COMMANDS</a><br>
<a href="#AFFECTING ENVIRONMENT VARIABLES">AFFECTING ENVIRONMENT VARIABLES</a><br>
<a href="#COMMON PROBLEMS">COMMON PROBLEMS</a><br>
<a href="#INVOCATION EXAMPLES">INVOCATION EXAMPLES</a><br>
<a href="#NOTES">NOTES</a><br>
<a href="#BUGS">BUGS</a><br>
<a href="#FILES">FILES</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<a href="#AUTHOR">AUTHOR</a><br>
<a href="#COPYRIGHT">COPYRIGHT</a><br>
<hr>
<h2>NAME
<a name="NAME"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">fim -
<b>F</b>bi (linux <b>f</b>rame<b>b</b>uffer
<b>i</b>mageviewer) <b>IM</b>proved, an universal image
viewer</p>
<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b>
[<i>{options}</i>] [--] <i>{imagepath}</i>
[<i>{imagepaths}</i>] <b><br>
fim</b> --output-device
[fb|sdl|gtk|ca|aa|dumb][=<i>{gfxopts}</i>] <b><br>
... | fim</b> [<i>{options}</i>] [--] [<i>{imagepaths}</i>]
- <b><br>
fim</b> [<i>{options}</i>] [--] [<i>{files}</i>] - <
<i>{file_name_list_text_file}</i> <b><br>
fim</b> --image-from-stdin [<i>{options}</i>] <
<i>{imagefile}</i> <b><br>
fim</b> --script-from-stdin [<i>{options}</i>] <
<i>{scriptfile}</i> <b><br>
fim</b> --help[=s|d|l|m] [<i>{help-item}</i> ...]</p>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> is a
’swiss army knife’ for displaying image files.
It is capable of displaying image files using different
graphical devices while offering a uniform look and feel.
Key bindings are customizable and specified in an
initialization file. Interaction with standard input and
output is possible, especially in shell scripts. An internal
scripting language specialized for image viewing allows
image navigation, scaling, manipulation of internal
variables, command aliases, and Vim-like autocommands. The
internal language can be interacted with via a command line
mode capable of autocompletion and history (the readline
mode). Further features are display of EXIF tags, JPEG
comments, EXIF rotation/orientation, load of
"description files", faster load via image
caching, command recording, and much more.</p>
<p style="margin-left:11%; margin-top: 1em">As a default,
<b>fim</b> displays the specified file(s) on the detected,
most convenient graphical device. This can be with SDL if
running under X, an ASCII-art driver (aalib or libcaca) if
running behind ssh without X forwarding, or the linux
framebuffer device. Graphical file formats BMP, PCX are
supported natively, while JPEG, PNG, GIF, TIFF, PPM, PGM,
PBM, QOI, AVIF, WEBP are supported via third party
libraries. Further formats are supported via external
converters. For XCF (Gimp’s) images,
’xcftopnm’ or ’xcf2pnm’ is used. For
FIG vectorial images, ’fig2dev’ is used. For DIA
vectorial images, ’dia’ is used. For NEF raw
camera images, ’dcraw’ is used. For SVG
vectorial images, ’inkscape’ is used. For other
formats ImageMagick’s ’convert’ is used.
The converter is given 15 seconds for the conversion before
a timeout.</p>
<p style="margin-left:11%; margin-top: 1em">If
<i>{imagepath}</i> is a file, its format is guessed not by
its name but by its contents. See the <b>_file_loader</b>
variable to change this default.</p>
<p style="margin-left:11%; margin-top: 1em">If
<i>{imagepath}</i> is a directory, load files of supported
formats contained there. If <i>{imagepath}</i> contains a
trailing slash (/), it is treated as a directory; otherwise
that is checked via <b>stat(2)</b>. To change this default,
see description of the <b>_pushdir_re</b> variable and the
<b>--no-stat-push</b> and <b>--recursive</b> options.</p>
<p style="margin-left:11%; margin-top: 1em">This man page
describes <b>fim</b> command line options and usage. See man
<i>fimrc</i>(5) for a full specification of the <b>fim</b>
language, commands, keysyms, autocommands, variables,
aliases, examples for a configuration file and readline
usage samples.</p>
<h2>USAGE
<a name="USAGE"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">You may invoke
<b>fim</b> from an interactive shell and control it with the
keyboard, as you would do with any image viewer with
reasonable key bindings.</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> is
keyboard oriented: there are no user menus or buttons
available. If you need some feature or setting which is not
accessible from the default keyboard configuration, you
probably need a custom configuration or simply need to type
a custom command. For these, you can use the internal
command and configuration language.</p>
<p style="margin-left:11%; margin-top: 1em">See options
<b>--read-from-stdin</b>, <b>--script-from-stdin</b>, and
<b>--image-from-stdin</b> for more script-oriented
usages.</p>
<p style="margin-left:11%; margin-top: 1em">The full
commands specification is also accessible at runtime using
the internal help system (typing :help).</p>
<h2>OPTIONS
<a name="OPTIONS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Accepted
command line <i>{options}:</i></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">
<p><b>--</b></p></td>
<td width="8%"></td>
<td width="78%">
<p>Treat arguments after <b>--</b> as filenames. Treat
arguments before <b>--</b> as command line options if these
begin with <b>-</b>, and as filenames otherwise.</p></td></tr>
</table>
<p style="margin-left:11%;"><b>-a</b>,
<b>--autozoom</b></p>
<p style="margin-left:22%;">Enable autozoom. Automagically
pick a reasonable zoom factor when displaying a new image
(as in <b>fbi</b>).</p>
<p style="margin-left:11%;"><b>-b[24|1]</b>,
<b>--binary[=24|1]</b></p>
<p style="margin-left:22%;">Display contents of binary
files (of any filetype) as these were raw 24 or 1 bits per
pixel pixelmaps. The width of this image will not exceed the
value of the <b>_preferred_rendering_width</b> variable.
Regard this as an easter bunny option.</p>
<p style="margin-left:11%;"><b>--as-text</b></p>
<p style="margin-left:22%;">Display contents of files (of
any filetype) as these were text. The width of this image
will not exceed the value of the
<b>_preferred_rendering_width</b> variable. Non-printable
characters are then displayed as " ". Regard this
as another easter bunny option.</p>
<p style="margin-left:11%;"><b>--cd-and-readdir</b></p>
<p style="margin-left:22%;">Step in the directory of the
first file to be loaded, push other files from that
directory, and jump back to the first file. Useful when
invoking from a desktop environment.</p>
<p style="margin-left:11%;"><b>-c</b> <i>{commands},</i>
<b>--execute-commands</b> <i>{commands}</i></p>
<p style="margin-left:22%;">Execute <i>{commands}</i> after
reading the initialization file, just before entering the
interactive mode. No semicolon (<b>;</b>) is required at the
end of <i>{commands}</i>. Do not forget quoting
<i>{commands}</i> in a manner suitable to your shell. So -c
next is fine as it is. A more complicated example, with
quotings: -c ’*2;2pan_up;display;while(1){align
"bottom";sleep "1" ; align
"top"}’ (with the single quotes) tells fim
to: double the displayed image size, pan twice up, display
the image, and finally do an endless loop consisting of
bottom and top aligning, alternated.</p>
<p style="margin-left:11%;"><b>-C</b> <i>{commands},</i>
<b>--execute-commands-early</b> <i>{commands}</i></p>
<p style="margin-left:22%;">Similar to the
<b>--execute-commands</b> option, but execute
<i>{commands}</i> earlier, just before reading the
initialization file. If <i>{commands}</i> takes the special
’early’ form <i>=var=val</i>, it assigns value
<i>val</i> to variable <i>var</i> immediately, before the
interpreter is started, and with no value quoting
needed.</p>
<p style="margin-left:22%; margin-top: 1em">For example, -C
’<b>_scale_style</b>=" "’ starts fim
no auto-scaling; the equivalent early form is: -C
’=<b>_scale_style</b>= ’.</p>
<p style="margin-left:11%;"><b>-d</b> <i>{fbdev},</i>
<b>--device</b> <i>{fbdev}</i></p>
<p style="margin-left:22%;">Framebuffer device to use.
Default is the one your vc is mapped to (as in fbi).</p>
<p style="margin-left:11%;"><b>--dump-reference-help[=man]</b></p>
<p style="margin-left:22%;">Dump to stdout language
reference help and quit.</p>
<p style="margin-left:11%;"><b>--dump-default-fimrc</b></p>
<p style="margin-left:22%;">Dump default configuration (the
one hardcoded in the fim executable) to standard output and
quit.</p>
<p style="margin-left:11%;"><b>-E</b> <i>{scriptfile},</i>
<b>--execute-script</b> <i>{scriptfile}</i></p>
<p style="margin-left:22%;">Execute <i>{scriptfile}</i>
after the default initialization file is read, and before
executing <b>--execute-commands</b> commands.</p>
<p style="margin-left:11%;"><b>-f</b> <i>{fimrc},</i>
<b>--etc-fimrc</b> <i>{fimrc}</i></p>
<p style="margin-left:22%;">Specify an alternative
system-wide initialization file (default:
/usr/local/etc/fimrc), to be read prior to any other
configuration file. See also <b>--no-etc-fimrc-file</b>.</p>
<p style="margin-left:11%;"><b>-F</b> <i>{commands},</i>
<b>--final-commands</b> <i>{commands}</i></p>
<p style="margin-left:22%;">Similar to the
<b>--execute-commands</b> option, but execute
<i>{commands}</i> after exiting the interactive mode, just
before terminating the program.</p>
<p style="margin-left:11%;"><b>-h[s|d|l|m]</b>,
<b>--help[=s|d|l|m]</b></p>
<p style="margin-left:22%;">Print program invocation help,
and exit. Depending on the option, output can be: short,
descriptive, long from man, or complete man. For each
further argument <i>{help-item}</i> passed to <b>fim</b>, an
individual help message is shown. If <i>{help-item}</i>
starts with a /, it is treated as a search string (not a
regexp, though).</p>
<p style="margin-left:11%;"><b>-k</b> <i>{keysym},</i>
<b>--keysym-press</b> <i>{keysym}</i></p>
<p style="margin-left:22%;">Execute any command bound (via
the bind command) to a specified keysym at startup. A keysym
can be prefixed by a repetition count number. You can
specify the option multiple times to simulate multiple
keystrokes. Presses entered via <b>--keysym-press</b> are
processed with the same priority as those entered via
<b>--chars-press</b>, that is, as they appear. See man
<i>fimrc</i>(5) for a list of keysyms and the use of
bind.</p>
<p style="margin-left:11%;"><b>-K</b> <i>{chars},</i>
<b>--chars-press</b> <i>{chars}</i></p>
<p style="margin-left:22%;">Input one or more keyboard
characters at program startup (simulate keyboard presses).
This option can be specified multiple times. Each additional
time (or if the string is empty), a press of Enter (ASCII
code 0x0D) key is prepended. Examples: -K ’’
simulates press of an Enter; -K ’:next;’
activates the command line and enter "next;"
without executing it; -K ":next;" -K
"next" executes "next", stays in the
command line and enter keys "next"; -K
":next;" -K "" -K "next"
executes "next", leaves the command line, and
executes in sequence any command bound to keys
’n’, ’e’, ’x’,
’t’. Presses entered via <b>--chars-press</b>
are processed with the same priority as those entered via
<b>--keysym-press</b>, that is, as they appear.</p>
<p style="margin-left:11%;"><b>-D</b> <i>{filename},</i>
<b>--load-image-descriptions-file</b> <i>{filename}</i></p>
<p style="margin-left:22%;">Load image descriptions from
file <i>{filename}</i>. Each line begins with the basename
of an image file, followed by a Tab character (or a
different character if specified via
<b>--image-descriptions-file-separator</b>), then the
description text. The description text is copied into the
<b>i:_comment</b> variable of the image at load time,
overriding the comment possibly loaded from the file (e.g.
JPEG, PNG or TIFF comment). If a ’@’ followed by
an identifier <i>{identifier}</i> is encountered, and
i:<i>{var}</i> is set, its value is substituted here. If
"@#" is encountered, the remainder of the
description line is ignored. Special comment lines like
"#!fim:<i>{var}</i>=<i>{val}</i>" lead
i:<i>{var}</i> to be assigned value <i>{val}</i> (unquoted)
at image loading time (cached variable), unless <i>{var}</i>
starts with an underscore (’_’). Special comment
lines like "#!fim:@<i>{var}</i>=<i>{val}</i>"
create a variable <i>{var}</i> that are only valid in
expanding @<i>{var}</i> in comments. Special comment lines
like "#!fim:<i>{var}</i>@=<i>{val}</i>" or
"#!fim:@<i>{var}</i>@=<i>{val}</i> (notice @ before =)
also expand whatever @<i>{identifier}</i> encountered in
<i>{val}</i> . Special comment lines like
"#!fim:+=<i>{val}</i>" add <i>{val}</i> to current
description. Special comment lines like
"#!fim:^=<i>{val}</i>" set <i>{val}</i> to be the
base of each description. Special comment lines like
"#!fim:!=" reset all cached variables. Special
comment lines like "#!fim:/=<i>{dir}</i>" prepend
<i>{dir}</i> to each file’s basename. Special comment
lines like "#!fim:\=<i>{dir}</i>" prepend
<i>{dir}</i> to each file’s name. Special description
text (to be associated to an image) begins with markers:
with "#!fim:=", the last description line is
reused; with "#!fim:+", what follows is appended
to the last description line; with "#!fim:^", what
follows is prepended to the last description line; with
"#!fim:s/<i>{f}</i>/<i>{t}</i>", the last
description line is used and substituted substring
<i>{t}</i> to occurrences of substring <i>{f}</i>
(<i>{f}</i> and <i>{t}</i> cannot contain newlines or a
’/’). If <i>{val}</i> is empty that variable is
unset. These variables are stored also in an internal index
used by the limit command. This option sets
<b>_caption_over_image</b>=2, so that a caption is displayed
over the image. A description file beginning with
"#!fim:desc" can be loaded without specifying this
switch.</p>
<p style="margin-left:11%;"><b>-S</b> <i>{sepchar},</i>
<b>--image-descriptions-file-separator</b>
<i>{sepchar}</i></p>
<p style="margin-left:22%;">A character to be used as a
separator between the filename and the description part of
lines specified just before a
--load-image-descriptions-file.</p>
<p style="margin-left:11%;"><b>-i</b>,
<b>--image-from-stdin</b></p>
<p style="margin-left:22%;">Read one single image from the
standard input (the image data, not the filename). May not
work with all supported file formats. In the image list,
this image takes the special name
"<STDIN>".</p>
<p style="margin-left:11%;"><b>--mark-from-image-descriptions-file</b>
<i>{filename}</i></p>
<p style="margin-left:22%;">Set those files specified in
<i>{filename}</i> (see --load-image-descriptions-file for
the file format) as marked (see the list command).</p>
<p style="margin-left:11%;"><b>-m</b> <i>{vmode},</i>
<b>--mode</b> <i>{vmode}</i></p>
<p style="margin-left:22%;">Name of the video mode to use
video mode (must be listed in /etc/fb.modes). Default is not
to change the video mode. In the past, the XF86 config file
(/etc/X11/XF86Config) used to contain Modeline information,
which could be fed to the modeline2fb perl script
(distributed with fbset). On many modern xorg based systems,
there is no direct way to obtain a fb.modes file from the
xorg.conf file. So instead one could obtain useful fb.modes
info by using the (fbmodes (no man page AFAIK)) tool,
written by bisqwit. An unsupported mode should make fim exit
with failure. But it is possible the kernel could trick fim
and set a supported mode automatically, thus ignoring the
user set mode.</p>
<p style="margin-left:11%;"><b>-N</b>,
<b>--no-rc-file</b></p>
<p style="margin-left:22%;">No personal initialization file
is read (default is ~/.fimrc) at startup.</p>
<p style="margin-left:11%;"><b>--no-etc-fimrc-file</b></p>
<p style="margin-left:22%;">No system-wide initialization
file is read (default is /usr/local/etc/fimrc) at startup.
See also <b>--etc-fimrc</b>.</p>
<p style="margin-left:11%;"><b>--no-internal-config</b></p>
<p style="margin-left:22%;">No internal default
configuration at startup (uses internal variable
<b>_no_default_configuration</b>). Will only provide a
minimal working configuration.</p>
<p style="margin-left:11%;"><b>--no-commandline</b></p>
<p style="margin-left:22%;">With internal command line mode
disabled.</p>
<p style="margin-left:11%;"><b>--no-history-save</b></p>
<p style="margin-left:22%;">Do not save execution history
at finalization (uses internal variable
<b>_save_fim_history</b>).</p>
<p style="margin-left:11%;"><b>--no-history-load</b></p>
<p style="margin-left:22%;">Do not load execution history
at startup.</p>
<p style="margin-left:11%;"><b>--no-history</b></p>
<p style="margin-left:22%;">Do not load or save execution
history at startup.</p>
<p style="margin-left:11%;"><b>-p</b>,
<b>--script-from-stdin</b></p>
<p style="margin-left:22%;">Read commands from stdin before
entering in interactive mode.</p>
<p style="margin-left:11%;"><b>-o
[fb|sdl|gtk|ca|aa|dumb][=</b><i>{gfxopts}</i>]<i>,</i>
<b>--output-device <br>
[fb|sdl|gtk|ca|aa|dumb][=</b><i>{gfxopts}</i>]</p>
<p style="margin-left:22%;">Use the specified <b>device</b>
(one among fb|sdl|gtk|ca|aa|dumb) as fim video output
device, overriding automatic checks. If the <b>device</b> is
empty and followed by <i>{gfxopts}</i>, it will be selected
automatically. The available devices depend on the current
environment and on the configuration and compilation
options. You can get the list of available output devices
issuing <b>fim --version</b>. The possible values to
<i>{gfxopts}</i> that we describe here can also be passed as
"display ’reinit’ <i>{gfxopts}</i>" --
see man <i>fimrc</i> for this. The device name with options
(perhaps with modifications due to auto-detection) is stored
in variable <b>_device_string</b>. The <b>fb</b> option
selects the Linux framebuffer. Presence of <i>{gfxopts}</i>
with value <b>’S’</b> (e.g.
’<b>fb=S</b>’) makes framebuffer initialization
more picky: it does not tolerate running in a screen
session. The <b>ca</b> option (coloured ASCII-art) can be
specified as
<b>ca[={[’w’][’h’][’H’][’d:’DITHERMODE]}]</b>
; if supplied, <b>’w’</b> selects windowed mode,
provided libcaca is running under X; by default (or with
<b>’W’</b>), windowed mode is being turned off
internally during initialization by unsetting the DISPLAY
environment variable. If <b>’d:’</b> is present,
the <b>DITHERMODE</b> following it will be passed as dither
algorithm string (alternatively, it can be a non-negative
number, too). The <b>aa</b> (monochrome ASCII-art) option
can be specified as
<b>aa[={[’w’|’W’]}]</b>; if
supplied, <b>’w’</b> selects windowed mode,
provided aalib is running under X; by default (or with
<b>’W’</b>), windowed mode is being turned off
internally during initialization by unsetting the DISPLAY
environment variable. Please note that the readline
(internal command line) functionality in <b>ca</b> and
<b>aa</b> modes is limited. If the graphical windowed mode
is <b>sdl</b> or <b>gtk</b> it can be followed by
<b>={[’w’][’m’][’r’][’h’][’W’][’M’][’R’][’H’][width[:height]][’%’]}</b>,
where <b>width</b> and <b>height</b> are integer numbers
specifying the desired resolution (if <b>height</b> not
specified, it takes the value of <b>width</b>); the
<b>’w’</b> character requests windowed mode
(instead of <b>’W’</b> for fullscreen); the
<b>’m’</b> character requests mouse pointer
display; the <b>’h’</b> character requests help
grid map draw (can be repeated for variants); the
<b>’r’</b> character requests support for window
resize; the <b>’%’</b> character requests to
treat <b>width</b> and <b>height</b> as percentage of
possible window resolution. The same letters uppercase
request explicit negation of the mentioned features.
Additionally, in <b>gtk</b> mode: <b>’b’</b>
hides the menu bar, <b>’e’</b> starts with empty
menus, <b>’f’</b> rebuilds the menus, and
<b>’D’</b> removes the menus. <b>Note</b>: the
<b>gtk</b> mode is a recent addition and may have defects.
The <b>sdl</b> mode works best with libsdl-2; libsdl-1.2
support is being discontinued. <br>
The <b>imlib2</b> option requests imlib2 and is unfinished:
do not use it. <br>
The <b>dumb</b> test mode is there only for test purposes
and is not interactive.</p>
<p style="margin-left:11%;"><b>--offset</b>
<i>{bytes-offset[{:upper-offset}|{+offset-range}]}</i></p>
<p style="margin-left:22%;">Use the specified <i>offset</i>
(in bytes) for opening the specified files. If
<i>:upper-offset</i> is specified, further bytes until
<i>upper-offset</i> are probed. If <i>+offset-range</i> is
specified instead, that many additional bytes are to be
probed. Use this option to search damaged file systems for
image files. Appending a modifier among
’K’,’M’,’G’ (case
irrelevant) to an offset number changes the unit to be
respectively 2^10, 2^20, or 2^30 bytes.</p>
<p style="margin-left:11%;"><b>--pread-cmd</b>
<i>{cmd-filter-pipeline}</i></p>
<p style="margin-left:22%;">Specify a shell command with
<i>{cmd-filter-pipeline}</i>. If the current filename
matches "^[/A-Za-z0-9_.][/A-Za-z0-9_.-]*$", it is
be substituted to any occurrence of ’{}’. The
resulting command output is assumed to be file data, which
is read, decoded, and displayed. This works by setting the
internal <b>_pread_cmd</b> variable (empty by default).</p>
<p style="margin-left:11%;"><b>-P</b>,
<b>--text-reading</b></p>
<p style="margin-left:22%;">Enable textreading mode. This
has the effect that fim displays images scaled to the width
of the screen, and aligned to the top. If the images you are
watching are text pages, all you have to do to get the next
piece of text is to press space (in the default key
configuration, of course).</p>
<p style="margin-left:11%;"><b>-s</b> <i>{value},</i>
<b>--scroll</b> <i>{value}</i></p>
<p style="margin-left:22%;">Set scroll steps for internal
variable <b>_steps</b> (default is "20%").</p>
<p style="margin-left:11%;"><b>--slideshow</b>
<i>{number}</i></p>
<p style="margin-left:22%;">Interruptible slideshow mode.
Wait for <i>{number}</i> of seconds (can have a decimal
part, and is assigned to the _slideshow_sleep_time variable)
after each image. Implemented by executing reload;
i:fresh=1; while(_fileindex <=
_filelistlen-_loop_only_once){sleep _slideshow_sleep_time;
next;} _loop_only_once=0; sleep _slideshow_sleep_time; as a
first command. Can be interrupted by : or Esc. The other
keys execute accordingly to their function but do not
interrupt the slideshow. Like in fbi, this cycles forever,
unless <b>--once</b> is specified.</p>
<p style="margin-left:11%;"><b>--sanity-check</b></p>
<p style="margin-left:22%;">Perform a quick sanity check,
just after the initialization, and terminate.</p>
<p style="margin-left:11%;"><b>-t</b>,
<b>--no-framebuffer</b></p>
<p style="margin-left:22%;"><b>fim</b> Use an ASCII Art
driver. If present, use either of libcaca (coloured), or
aalib (monochrome). For more, see (man fimrc), (info aalib)
or (apropos caca)). If no ASCII Art driver had been enabled
at compile time, fim does not display any image at all.</p>
<p style="margin-left:11%;"><b>-T</b> <i>{terminal},</i>
<b>--vt</b> <i>{terminal}</i></p>
<p style="margin-left:22%;">The <i>{terminal}</i> is to be
used as virtual terminal device file (as in fbi). See (chvt
(1)), (openvt (1)) for more info about this. Use (con2fb
(1)) to map a terminal to a framebuffer device.</p>
<p style="margin-left:11%;"><b>--reverse</b></p>
<p style="margin-left:22%;">Reverse files list before
browsing (can be combined with the other sorting
options).</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">
<p><b>--sort</b></p></td>
<td width="2%"></td>
<td width="78%">
<p>Sort files list before browsing according to full
filename.</p> </td></tr>
</table>
<p style="margin-left:11%;"><b>--sort-basename</b></p>
<p style="margin-left:22%;">Sort files list before browsing
according to file basename’s.</p>
<p style="margin-left:11%;"><b>--sort-mtime</b></p>
<p style="margin-left:22%;">Sort files list before browsing
according to file modification time.</p>
<p style="margin-left:11%;"><b>--sort-fsize</b></p>
<p style="margin-left:22%;">Sort files list before browsing
according to file size.</p>
<p style="margin-left:11%;"><b>-u</b>, <b>--random</b></p>
<p style="margin-left:22%;">Randomly shuffle the files list
before browsing (seed depending on time() function).</p>
<p style="margin-left:11%;"><b>--random-no-seed</b></p>
<p style="margin-left:22%;">Pseudo-random shuffle the files
list before browsing (no seeding).</p>
<p style="margin-left:11%;"><b>-v</b>, <b>--verbose</b></p>
<p style="margin-left:22%;">Be verbose: show status
bar.</p>
<p style="margin-left:11%;"><b>--verbose-load</b></p>
<p style="margin-left:22%;">Load files verbosely (repeat
option to increase verbosity).</p>
<p style="margin-left:11%;"><b>--verbose-font-load</b></p>
<p style="margin-left:22%;">Load font verbosely (sets
<b>_fbfont_verbosity</b>).</p>
<p style="margin-left:11%;"><b>--verbose-interpreter</b></p>
<p style="margin-left:22%;">Execute interpreter verbosely
(Sets immediately <b>_debug_commands</b>="ackCm"
if specified once,
<b>_debug_commands</b>="ackCmmi" if specified
twice).</p>
<p style="margin-left:11%;"><b>-V</b>, <b>--version</b></p>
<p style="margin-left:22%;">Print to stdout program
version, compile flags, enabled features, linked libraries
information, supported filetypes/file loaders, and then
exit.</p>
<p style="margin-left:11%;"><b>-w</b>,
<b>--autowidth</b></p>
<p style="margin-left:22%;">Scale the image according to
the screen width.</p>
<p style="margin-left:11%;"><b>-=</b>,
<b>--no-auto-scale</b></p>
<p style="margin-left:22%;">Do not scale the images after
loading (sets ’<b>_scale_style</b>="
"’;).</p>
<p style="margin-left:11%;"><b>--autowindow</b></p>
<p style="margin-left:22%;">Resize the window size (if
supported by the video mode) to the image size. Don’t
use this with other image scaling options.</p>
<p style="margin-left:11%;"><b>--no-stat-push</b></p>
<p style="margin-left:22%;">Sets <b>_push_checks</b>=0
before initialization, thus disabling file/dir existence
checks with stat(2) at push push time (and speeding up
startup).</p>
<p style="margin-left:11%;"><b>-H</b>,
<b>--autoheight</b></p>
<p style="margin-left:22%;">Scale the image according to
the screen height.</p>
<p style="margin-left:11%;"><b>-W</b> <i>{scriptfile},</i>
<b>--write-scriptout</b> <i>{scriptfile}</i></p>
<p style="margin-left:22%;">All the characters that you
type are recorded in the file <i>{scriptfile}</i>, until you
exit <b>fim</b>. This is useful if you want to create a
script file to be used with "fim -c" or
":exec" (analogous to Vim’s -s and
":source!"). If the <i>{scriptfile}</i> file
exists, it is not touched (as in Vim’s -w).</p>
<p style="margin-left:11%;"><b>-L</b>
<i>{fileslistfile},</i> <b>--read-from-file</b>
<i>{fileslistfile}</i></p>
<p style="margin-left:22%;">Read file list from a file:
each line one file to load (similar to
<b>--read-from-stdin</b>; use <b>--read-from-stdin-elds</b>
to control line breaking).</p>
<p style="margin-left:11%;"><b>-, --read-from-stdin</b></p>
<p style="margin-left:22%;">Read file list from stdin: each
line one file to load; use with --read-from-stdin-elds to
control line breaking).</p>
<p style="margin-left:22%; margin-top: 1em">Note that these
three standard input reading functionalities (-i,-p and -)
conflict : if two or more of them occur in fim invocation,
fim exits with an error and warn about the ambiguity.</p>
<p style="margin-left:22%; margin-top: 1em">See the section
<b>INVOCATION EXAMPLES</b> below to read some useful (and
unique) ways of employing fim.</p>
<p style="margin-left:11%;"><b>--read-from-stdin-elds</b>
<i>{delimiter-char}</i></p>
<p style="margin-left:22%;">Specify an endline delimiter
character for breaking lines read via
-/--read-from-stdin/--read-from-file (which shall be
specified after this). Line text before the delimiter are be
treated as names of files to load; the text after is
ignored. This is also useful e.g. to load description files
(see --load-image-descriptions-file) as filename list files.
Default is the newline character (0x0A); to specify an ASCII
NUL byte (0x00) use ’’.</p>
<p style="margin-left:11%;"><b>-A</b>, <b>--autotop</b></p>
<p style="margin-left:22%;">Align images to the top border
(by setting ’<b>_autotop</b>=1’ after
initialization).</p>
<p style="margin-left:11%;"><b>-q</b>, <b>--quiet</b></p>
<p style="margin-left:22%;">Quiet execution mode. Sets
_display_status=0;_display_busy=0;.</p>
<p style="margin-left:11%;"><b>-r</b>
<i>{{width:height}|’fullscreen’},</i>
<b>--resolution</b> <i><br>
{{width:height}|’fullscreen’}</i></p>
<p style="margin-left:22%;">Set resolution specification in
pixels dimensions. Supported only by GTK and SDL. Will be
appended to the argument to --output-device. Shorthand value
’fullscreen’ is translated as
’W’.</p>
<p style="margin-left:11%;"><b>-R[</b><i>{exp}</i>]<i>,</i>
<b>--recursive[=</b><i>{exp}</i>]</p>
<p style="margin-left:22%;">Push files/directories to the
files list recursively. The expression in variable
<b>_pushdir_re</b> (default:
".(JPG|PNG|GIF|BMP|TIFF|TIF|JPEG|JFIF|PPM|PGM|PBM|PCX|QOI|AVIF|WEBP)$")
lists extensions of filenames which are loaded in the list.
You can overwrite its value by optionally passing an
expression <i>{exp}</i> here as argument. If starting with
’+’ or ’|’, the expression following
is to be appended to it.</p>
<p style="margin-left:11%;"><b>-X</b>,
<b>--no-pipe-load</b></p>
<p style="margin-left:22%;">Do not load via external
converter programs: only use built-in file decoders.</p>
<p style="margin-left:11%;"><b>-B</b>,
<b>--background-recursive</b></p>
<p style="margin-left:22%;">Push files/directories to the
files list recursively, in background during program
execution. Any sorting options are ignored. Experimental
feature, unfinished.</p>
<p style="margin-left:11%;"><b>--load-shadow-directory</b>
<i>{dirname}</i></p>
<p style="margin-left:22%;">Add <i>{dirname}</i> to the
shadow directory list. Then ’scale
"shadow"’ temporarily substitutes the image
being displayed with that of the first same-named file
located under a shadow directory. Useful to browse low-res
images, but still being able to quickly view the hi-res
original residing in a shadow directory. This works as
intended as long as unique filenames are involved.</p>
<p style="margin-left:11%;"><b>-/</b> <i>{pattern},</i>
<b>--/</b> <i>{pattern}</i></p>
<p style="margin-left:22%;">After startup jump to pattern;
short for -c ’/’ <i>{pattern}</i>.</p>
<p style="margin-left:11%;"><b>--//</b>
<i>{pattern}</i></p>
<p style="margin-left:22%;">After startup jump to pattern;
as -c ’/’<i>{pattern}</i> but with search on the
full path (with <b>_re_search_opts="f"</b>).</p>
<p style="margin-left:11%;"><b>-1</b>, <b>--once</b></p>
<p style="margin-left:22%;">If running --slideshow, loop
only once (as in fbi).</p>
<h2>PROGRAM RETURN STATUS
<a name="PROGRAM RETURN STATUS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The program
return status is 0 on correct operation; 252 on unsupported
device specification; 248 on bad input; 255 on a generic
error; 42 on a signal-triggered program exit; or a different
value in case of an another error. <br>
The return status may be controlled by the use of the quit
command.</p>
<h2>COMMON KEYS AND COMMANDS
<a name="COMMON KEYS AND COMMANDS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The following
keys and commands are default hardcoded in the minimal
configuration. These are working by default before any
configuration file loading, and before the hardcoded config
loading (see variable
<b>_fim_default_config_file_contents</b>).</p>
<p style="margin-left:11%; margin-top: 1em">n goto
’+1f’ <br>
p goto ’-1f’ <br>
+ scale ’+’ <br>
- scale ’-’ <br>
h pan ’left’ <br>
l pan ’right’ <br>
k pan ’up-’ <br>
j pan ’down+’ <br>
q quit <br>
You can type a number before a command binding to iterate
the assigned command: <br>
3k 3pan ’up-’</p>
<p style="margin-left:11%; margin-top: 1em">: enter command
line mode (here one can use readline bindings as C-r, C-s,
M-b, M-f, ...) <br>
:<i>{number}</i> jump to <i>{number}</i>^th image in the
list</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>:^</p></td>
<td width="85%">
<p>jump to first image in the list</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>:$</p></td>
<td width="85%">
<p>jump to last image in the list</p></td></tr>
</table>
<p style="margin-left:11%;">:*<i>{factor}</i> scale the
image by <i>{factor}</i> <br>
:<i>{scale}</i>% scale the image to the desired
<i>{scale}</i> <br>
:+<i>{scale}</i>% scale the image up to the desired
percentage <i>{scale}</i> (relatively to the original) <br>
:-<i>{scale}</i>% scale the image down to the desired
percentage <i>{scale}</i> (relatively to the original)</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>/<i>{regexp}</i></p></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="7%">
<p>entering the pattern <i>{regexp}</i> (with
’/’) makes fim jump to the next image whose
filename matches <i>{regexp}</i></p></td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>/*.png$</p></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="7%">
<p>entering this pattern (with ’/’) makes fim
jump to the next image whose filename ends with
’png’</p> </td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>/png</p></td>
<td width="8%">
</td>
<td width="8%">
<p>a shortcut for ’/.*png.*’</p></td>
<td width="7%"></td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>2,4 stdout ’{}’</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="62%">
<p>print three filenames to standard output.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>!<i>{syscmd}</i></p></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="7%">
<p>executes the <i>{syscmd}</i> quoted string as an
argument to the "system" fim command.</p></td>
<td width="62%">
</td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em">You can
visualize all of the default bindings invoking fim
--dump-default-fimrc | grep bind . <br>
You can visualize all of the default aliases invoking fim
--dump-default-fimrc | grep alias .</p>
<p style="margin-left:11%; margin-top: 1em">The Return vs.
Space key thing can be used to create a file list while
reviewing the images and use the list for batch processing
later on.</p>
<p style="margin-left:11%; margin-top: 1em">All of the key
bindings are reconfigurable; see the default <b>fimrc</b>
file for examples on this, or read the complete manual: the
FIM.TXT file distributed with fim.</p>
<h2>AFFECTING ENVIRONMENT VARIABLES
<a name="AFFECTING ENVIRONMENT VARIABLES"></a>
</h2>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%">
<p>FBFONT</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="69%">
<p>(just like in fbi) a Linux consolefont font file.</p></td></tr>
</table>
<p style="margin-left:11%;">If using a gzipped font file,
the zcat program is used to uncompress it (via
<b>execvp(3)</b>). <br>
If FBFONT is unset, the following files are probed and the
first existing one is selected:</p>
<p style="margin-left:11%; margin-top: 1em">/usr/share/kbd/consolefonts/cp866-8x16.psf.gz
<br>
/usr/share/consolefonts/Uni3-TerminusBoldVGA14.psf.gz <br>
/usr/lib/kbd/consolefonts/lat9-16.psf.gz <br>
/usr/share/consolefonts/lat1-16.psf <br>
/usr/share/consolefonts/lat1-16.psf.gz <br>
/usr/share/consolefonts/lat1-16.psfu.gz <br>
/usr/share/kbd/consolefonts/lat1-16.psf <br>
/usr/share/kbd/consolefonts/lat1-16.psf.gz <br>
/usr/share/kbd/consolefonts/lat1-16.psfu.gz <br>
/usr/lib/kbd/consolefonts/lat1-16.psf <br>
/usr/lib/kbd/consolefonts/lat1-16.psf.gz <br>
/usr/lib/kbd/consolefonts/lat1-16.psfu.gz <br>
/lib/kbd/consolefonts/lat1-16.psf <br>
/lib/kbd/consolefonts/lat1-16.psf.gz <br>
/lib/kbd/consolefonts/lat1-16.psfu.gz <br>
/lib/kbd/consolefonts/Lat2-VGA14.psf.gz <br>
/lib/kbd/consolefonts/Lat2-VGA16.psf.gz <br>
/lib/kbd/consolefonts/Lat2-VGA8.psf.gz <br>
/lib/kbd/consolefonts/Uni2-VGA16.psf.gz <br>
/usr/share/consolefonts/default8x16.psf.gz <br>
/usr/share/consolefonts/default8x9.psf.gz <br>
/usr/share/consolefonts/Lat15-Fixed16.psf.gz <br>
/usr/share/consolefonts/default.psf.gz <br>
fim://</p>
<p style="margin-left:11%; margin-top: 1em">If the special
fim:// string is specified, a hardcoded font is used.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%">
<p>FBGAMMA</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%">
</td>
<td width="69%">
<p>(just like in fbi) gamma correction (applies to dithered
8 bit mode only). Default is 1.0.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%">
<p>FRAMEBUFFER</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="69%">
<p>(just like in fbi) user set framebuffer device file
(applies only to the fb mode).</p></td></tr>
</table>
<p style="margin-left:11%;">If unset, fim probes for
/dev/fb0.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>TERM</p></td>
<td width="8%">
</td>
<td width="8%">
<p>(only in fim) influences the output device selection
algorithm, especially if $TERM=="screen".</p></td>
<td width="7%"></td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>SSH_TTY</p></td>
<td width="8%"></td>
<td width="8%">
<p>if set and no output device specified, assume
we’re over <b>ssh</b>, and give precedence to ca, then
aa (if present).</p></td>
<td width="7%"></td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>TERMUX_VERSION</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%">
<p>if set and no output device specified, assume
we’re over <b>termux</b>, and give precedence to ca,
then aa (if present).</p></td>
<td width="62%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>WAYLAND_DISPLAY</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="62%">
<p>if set and no output device specified, assume
we’re over <b>Wayland</b>, and give precedence to gtk,
then sdl, then ca, then aa (if present).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="-3%"></td>
<td width="7%">
<p>DISPLAY</p></td>
<td width="8%"></td>
<td width="8%">
<p>If this variable is set, then the gtk driver has
precedence, then sdl.</p></td>
<td width="7%"></td>
<td width="62%">
</td></tr>
</table>
<h2>COMMON PROBLEMS
<a name="COMMON PROBLEMS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>fim -o
fb</b> needs read-write access to the framebuffer devices
(/dev/fbN or /dev/fb/N), i.e you (our your admin) have to
make sure fim can open the devices in rw mode. The IMHO most
elegant way is to use pam_console (see
/etc/security/console.perms) to chown the devices to the
user logged in on the console. Another way is to create some
group, chown the special files to that group and put the
users which are allowed to use the framebuffer device into
the group. You can also make the special files world
writable, but be aware of the security implications this
has. On a private box it might be fine to handle it this way
through.</p>
<p style="margin-left:11%; margin-top: 1em">If using udev,
you can edit: /etc/udev/permissions.d/50-udev.permissions
and set these lines like here: <br>
# fb devices <br>
fb:root:root:0600 <br>
fb[0-9]*:root:root:0600 <br>
fb/*:root:root:0600</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim -o
fb</b> also needs access to the linux console (i.e.
/dev/ttyN) for sane console switch handling. That is
obviously no problem for console logins, but any kind of
pseudo tty (xterm, ssh, screen, ...) will <b>not</b>
work.</p>
<h2>INVOCATION EXAMPLES
<a name="INVOCATION EXAMPLES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>fim --help
-R -B</b> <br>
# get help for options <b>-R</b> and <b>-B</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>fim
media/</b> <br>
# load files from the directory <b>media/</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>fim -R
media/ --sort</b> <br>
# open files found by recursive traversal of directory
media, then sorting the list</p>
<p style="margin-left:11%; margin-top: 1em"><b>find
/mnt/media/ -name *.jpg | fim -</b> <br>
# read input files list from standard input</p>
<p style="margin-left:11%; margin-top: 1em"><b>find
/mnt/media/ -name *.jpg | shuf | fim -</b> <br>
# read input files list from standard input, randomly
shuffled</p>
<p style="margin-left:11%; margin-top: 1em"><b>cat
script.fim | fim -p images/*</b> <br>
# read a script file <b>script.fim</b> from standard input
before displaying files in the directory <b>images</b></p>
<p style="margin-left:11%; margin-top: 1em"><b>scanimage
... | tee scan.ppm | fim -i</b> <br>
# read the image scanned from a flatbed scanner as soon as
it is read</p>
<p style="margin-left:11%; margin-top: 1em"><b>h5topng -x 1
-y 2 dataset.hdf -o /dev/stdout | fim -i</b> <br>
# visualize a slice from an HDF5 dataset file</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim * >
selection.txt</b> <br>
# output the file names marked interactively with the
’list "mark"’ command in fim to a
file</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim * | fim
-</b> <br>
# output the file names marked with ’m’ in fim
to a second instance of fim, in which these could be marked
again</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> -c
’pread "vgrabbj -d /dev/video0 -o
png";reload’ <br>
# display an image grabbed from a webcam</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> -o
aa -c ’pread "vgrabbj -d /dev/video0 -o
png";reload;system "fbgrab"
"asciime.png"’ <br>
# if running in framebuffer mode, saves a png screenshot
with an ASCII rendering of an image grabbed from a
webcam</p>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> -c
’while(1){pread "vgrabbj -d /dev/video0 -o
png";reload;sleep 1;};’</p>
<p style="margin-left:11%; margin-top: 1em"># display a
sequence of images grabbed from a webcam; circa 1 per
second</p>
<h2>NOTES
<a name="NOTES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">This manual
page is neither accurate nor complete. In particular, issues
related to driver selection shall be described more
accurately. Also the accurate sequence of autocommands
execution, variables application is critical to
understanding fim, and should be documented. The filename
"<STDIN>" is reserved for images read from
standard input (view this as a limitation), and thus
handling files with such name may incur in limitations.</p>
<h2>BUGS
<a name="BUGS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>fim</b> has
bugs. Please read the <b>BUGS</b> file shipped in the
documentation directory to discover the known ones. There
are also inconsistencies in the way the internal command
line works across the different graphical devices.</p>
<h2>FILES
<a name="FILES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>/usr/local/share/doc/fim</b></p>
<p style="margin-left:34%;">The directory with <b>fim</b>
documentation files.</p>
<p style="margin-left:11%;"><b>/usr/local/etc/fimrc</b></p>
<p style="margin-left:34%;">The system-wide <b>fim</b>
initialization file (executed at startup, after executing
the hardcoded configuration).</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="21%">
<p><b>~/.fimrc</b></p></td>
<td width="2%"></td>
<td width="66%">
<p>The personal <b>fim</b> initialization file (executed at
startup, after the system-wide initialization file).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="21%">
<p><b>~/.fim_history</b></p></td>
<td width="2%"></td>
<td width="66%">
<p>File where to load from or save command history. See
(man <i>fimrc</i>(5), man <i>readline</i>(3)).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="21%">
<p><b>~/.inputrc</b></p></td>
<td width="2%"></td>
<td width="66%">
<p>If <b>fim</b> is built with GNU readline support, it is
susceptible to changes in the user set ~/.inputrc
configuration file contents. For details, see (man
<i>readline</i>(3)).</p> </td></tr>
</table>
<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Other
<b>fim</b> man pages: <i>fimgs</i>(1), <i>fimrc</i>(1). <br>
Conversion programs: <i>convert</i>(1), <i>dia</i>(1),
<i>xcftopnm</i>(1), <i>fig2dev</i>(1), <i>inkscape</i>(1).
<br>
Related programs: <i>fbset</i>(1), <i>con2fb</i>(1),
<i>vim</i>(1), <i>mutt</i>(1), <i>exiftool</i>(1),
<i>exiftags</i>(1), <i>exiftime</i>(1), <i>exifcom</i>(1),
<i>fbi</i>(1), <i>fbida</i>(1), <i>feh</i>(1),
<i>qiv</i>(1), <i>sxiv</i>(1), <i>fbgrab</i>(1). <br>
Related documentation: <i>fbdev</i>(4), <i>vcs</i>(4),
<i>fb.modes</i>(8), <i>fbset</i>(8), <i>setfont</i>(8).</p>
<h2>AUTHOR
<a name="AUTHOR"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Michele Martone
<dezperado _CUT_ autistici _CUT_ org> is the author of
fim, "Fbi IMproved".</p>
<h2>COPYRIGHT
<a name="COPYRIGHT"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">Copyright (C)
2007-2024 Michele Martone <dezperado _CUT_ autistici
_CUT_ org> (author of fim) <br>
Copyright (C) 1999-2004 Gerd Hoffmann <kraxel _CUT_
bytesex.org> is the author of "fbi", upon which
<b>fim</b> was originally based.</p>
<p style="margin-left:11%; margin-top: 1em">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 the Free Software Foundation; either version 2
of the License, or (at your option) any later version.</p>
<p style="margin-left:11%; margin-top: 1em">This program is
distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.</p>
<p style="margin-left:11%; margin-top: 1em">You should have
received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.</p>
<hr>
</body>
</html>
|