-
Notifications
You must be signed in to change notification settings - Fork 4
/
cadubi.1
156 lines (150 loc) · 4.63 KB
/
cadubi.1
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
.\" created by Abel Daniel for the Debian Gnu/Linux version, but may be used by
others.
.TH "cadubi" "1" "1.3.4" "Abel Daniel" "User commands"
.SH "NAME"
cadubi \- Creative ASCII Drawing Utility By Ian
.SH "DESCRIPTION"
cadubi is an application written in Perl that allows you to draw text\-based
images that are viewable on typical UNIX\-based consoles. Usually the
applications
that emulate these consoles support various text modes, such as background and
foreground colors, bold, and inverse. This text art, commonly called
"ASCII art", is used in various places such as online BBSes, email and
login prompts.
.SH "OPTIONS"
.TP
.B \-h \-\-help
display some documentation
.TP
.BI \-m \-\-mute
turn off beeping
.TP
.BI "\-s ["W "] ["H ]
.TP
.BI "\-\-size ["W "] ["H ]
sets the size of the console for use with cadubi, where W is number of columns
and H is number of rows.
.TP
.B \-v \-\-version
show cadubi's version
.SH "CONFIGURING"
Beeping and command line options can be also set in /usr/bin/cadubi.
.SH "KEYBOARD"
.TP
.B i j k l
Move the cursor around. Holding down shift and typing these keys will move the
ursor five spaces instead of one.
.TP
.B space
Paint the current pen on the screen.
.TP
.B return/enter
Move the cursor down one line and all the way to the left of the console.
.TP
.BI "delete " "or " "backspace " "or "`
Delete the character before the cursor.
.TP
.B p
Prompt for a pen character
.TP
.B f
Prompt for foreground color (see section colors).
.TP
.B b
Prompt for background color (see section colors).
.TP
.B g
Toggle bold mode.
.TP
.B v
Toggle inverse mode.
.TP
.B shift-w
Toggle blink (highly annoying).
.TP
.B t
Enter text mode. This allows you to type like as if you were using a normal
text editor, and all the characters drawn onscreen will use the same mode
as the pen
.
Pressing Esc will exit text mode.
.TP
.B control-w
Refresh the entire screen by redrawing each character.
.TP
.B control-r
Open a file.
.TP
.B control-o
Save the file.
.TP
.B control-h
Show the quick help screen.
.TP
.B control-x
Exit cadubi.
.SH "USING"
Cadubi has a 'pen' which describes the current mode. Properties of the pen are
the painting character, foreground color, background color, bold, inverse, and
blink. Whenever you paint or use the text mode, the characters drawn on the
screen will have the properties of the pen. The current mode of the pen is
shown at the bottom of the console and is what will be drawn on screen
when you paint.
.
Typically, foreground text colors are the same as background colors, unless
the text is bold. If the text is bold, foreground colors are usually lighter
than
the background color, making text easier to read when the text has the same
foreground and background color. Refer to the Quick Help (control-'h') to see
what the colors look like on your console.
Text mode is an extremely useful feature. Once in the text mode you can type
as if you were using a normal text editor, and all the characters drawn
onscreen will use the same mode as the pen. To enter text mode,
press the 't' key. To exit, press escape.
When cadubi reads a file, it will only read as much that will fit in the
workspace (the area of the console minus the bottom row [status bar]). To gain
more workspace, see the '-s' operator in section "options".
Cadubi optimizes its output files to display properly and take up as little
space as possible. All cadubi output can be viewed with the 'cat' utility.
.SH "COLORS"
The color codes are case-insensitive.
The following color codes can be chosen as fore- or background colors:
.IP
0 or N \- Normal (standard text)
.IP
1 or W \- White
.IP
2 or R \- Red
.IP
3 or G \- Green
.IP
4 or Y \- Yellow
.IP
5 or B \- Blue
.IP
6 or M \- Magenta
.IP
7 or C \- Cyan
.IP
8 or K \- Black
.SH "WARNING"
Cadubi uses escape sequences for things like color. These may differ from
system to system. This means that the file generated by cadubi may
trash your console when viewed with for example cat.
It is generally safe to use the files on the
same type of console as they were generated on.
.SH "AUTHORS"
Cadubi was created and is currently being maintained by Ian Langworth. Please
send all questions, comments, hate mail and bug reports to cadubi@logicallemon.
com
.SH "SEE ALSO"
The "Keyboard and Console HOWTO" and the "Text Terminal HOWTO" from the
Linuxdoc project (www.linuxdoc.org). Both are available in a Debian GNU/Linux
system by installing the doc-linux-text package at
.B /usr/share/doc/HOWTO/en-txt/Keyboard-and-Console-HOWTO.gz
and
.B /usr/share/doc/HOWTO/en-txt/Text-Terminal-HOWTO.gz
respectively.
This man page was copy-pasted from other documentation by Abel Daniel (abli@mai
lbox.hu) for the Debian GNU/Linux distributions, but can be used by
others.