You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/rgbgfx.1
+40-22Lines changed: 40 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,13 @@ is to divide the input PNG into 8\[tmu]8 pixel
43
43
convert each of those squares into 1bpp or 2bpp tile data, and save all of the tile data in a file.
44
44
It also has options to generate a tile map, attribute map, and/or palette set as well; more on that and how the conversion process can be tweaked below.
45
45
.Sh ARGUMENTS
46
-
Note that options can be abbreviated as long as the abbreviation is unambiguous:
46
+
.Nm
47
+
accepts the usual short and long options, such as
48
+
.FlV
49
+
and
50
+
.Fl-version .
51
+
Options later in the command line override those set earlier, except for when duplicate options are considered an error.
52
+
Options can be abbreviated as long as the abbreviation is unambiguous:
47
53
.Fl\-verb
48
54
is
49
55
.Fl\-verbose ,
@@ -52,26 +58,6 @@ but
52
58
is invalid because it could also be
53
59
.Fl\-version .
54
60
.Pp
55
-
.Nm
56
-
accepts decimal, binary, and hexadecimal numbers in option arguments.
57
-
Decimal numbers are written as usual; binary numbers must be prefixed with either
58
-
.Ql%
59
-
or
60
-
.Ql0b ,
61
-
and hexadecimal numbers must be prefixed with either
62
-
.Ql$
63
-
(which will likely need escaping or quoting to avoid being interpreted by the shell), or
64
-
.Ql0x .
65
-
Leading zeros (after the base prefix, if any) are accepted, and letters are not case-sensitive.
66
-
All of these are equivalent:
67
-
.Ql42 ,
68
-
.Ql042 ,
69
-
.Ql0b00101010 ,
70
-
.Ql0B101010 ,
71
-
.Ql0x2A ,
72
-
.Ql0X2A ,
73
-
.Ql0x2a .
74
-
.Pp
75
61
Unless otherwise noted, passing
76
62
.Ql-
77
63
(a single dash) as a file name makes
@@ -82,7 +68,39 @@ To suppress this behavior, and open a file in the current directory actually cal
82
68
pass
83
69
.Ql./-
84
70
instead.
85
-
Using standard input or output more than once in a single command will likely produce unexpected results.
71
+
Using standard input or output for more than one file in a single command may produce unexpected results.
72
+
.Pp
73
+
.Nm
74
+
accepts decimal, hexadecimal, octal, and binary for numeric option arguments.
75
+
Decimal numbers are written as usual; hexadecimal numbers must be prefixed with either
76
+
.Ql$
77
+
or
78
+
.Ql0x ;
79
+
octal numbers must be prefixed with either
80
+
.Ql&
81
+
or
82
+
.Ql0o ;
83
+
and binary numbers must be prefixed with either
84
+
.Ql%
85
+
or
86
+
.Ql0b .
87
+
(The prefixes
88
+
.Ql$
89
+
and
90
+
.Ql&
91
+
will likely need escaping or quoting to avoid being interpreted by the shell.)
92
+
Leading zeros (after the base prefix, if any) are accepted, and letters are not case-sensitive.
0 commit comments