1- .TH XECHO 1 "September 2015 " "v1.0 "
1+ .TH XECHO 1 "August 2016 " "v1.1 "
22
33.SH NAME
44xecho \- Render text to simple X Windows
55
66.SH SYNOPSIS
7- .BI " xecho [-font " fontspec " ] [-title " title " ] [-bc " colorspec " ] [-fc " colorspec " ] "
7+ .BI " xecho [-h | -help | --help] [- font " fontspec " ] [-title " title " ] [-bc " colorspec " ] [-fc " colorspec " ] "
88.BI " [-dc " fontspec " ] [-size " size " ] [-maxsize " size " ] [-align " alignspec " ] "
9- .BI " [-padding " n " ] [-linespacing " n " ] [-stdin] [-independent-lines] [-debugboxes] "
9+ .BI " [-padding " n " ] [-linespacing " n " ] [-no- stdin] [-windowed ] [-independent-lines] [-debugboxes] "
1010.BI " [-disable-text] [-disable-doublebuffer] [-v[v[v[v]]]] " text
1111
1212.SH DESCRIPTION
13- .BR xecho " takes text from the command line or optionally (with " -stdin " ) from the standard"
13+ .BR xecho " takes text from the command line or from the standard"
1414input and displays it at the largest possible font size in an X11 window.
1515
1616.SH OPTIONS
@@ -94,25 +94,22 @@ $ xecho -linespacing 50 "There are 50 pixels\enBetween these lines"
9494.SH FLAGS
9595
9696.TP
97- .B -stdin
98- Read display text from stdin. This mode allows piping external programs to xecho in order
99- to periodically update the displayed text. The following control characters are interpreted
100- by this mode
101- .RS
102- .BR " \e n" " Start new line"
103- .RE
104- .RS
105- .BR " \e f" " Clear display"
106- .RE
107- .RS
108- .BR " \e r" " Clear current line"
109- .RE
110- .RS
111- .BR " \e b" " Backspace"
112- .RE
97+ .B -h | -help | --help
98+ Print usage information.
99+
100+ .TP
101+ .B -stdin
102+ Deprecated / No-op. Reading date from stdin has since become the standard and
103+ this argument is only provided for compatability reasons.
104+
105+ .TP
106+ .B -no-stdin
107+ Disable text content updates from stdin (see
108+ .B STDIN UPDATE PROTOCOL
109+ below for more information)
113110.RS
114111.B Example:
115- $ while :; do printf " \e f%s" "$(date)" && sleep 1; done | xecho -stdin
112+ $ xecho -no-stdin This text can not be updated
116113.RE
117114
118115.TP
@@ -128,28 +125,64 @@ $ xecho -independent-lines "This line will be big\enThis line will be comparativ
128125Draw debug boxes to indicate text bounding boxes.
129126.RS
130127.B Example:
131- $ xecho -debugboxes foo
128+ $ xecho -debugboxes foo
132129.RE
133130
134131.TP
135132.B -disable-text
136133Do not print text at all. Might be useful for playing tetris.
137134.RS
138135.B Example:
139- $ xecho -disable-text There goes nothing
136+ $ xecho -disable-text There goes nothing
140137.RE
141138
142139.TP
143140.B -disable-doublebuffer
144141Disable double buffering via the XDBE extension.
142+ .RS
143+ .B Example:
144+ $ xecho -disable-doublebuffer Resizing this window might flicker
145+ .RE
145146
146147.TP
147148.B -windowed
148149Do not try to force full screen display.
150+ .RS
151+ .B Example:
152+ $ xecho -windowed This window can be resized
153+ .RE
149154
150155.TP
151156.B -v[v[v[v]]]
152157Increase log output verbosity.
158+ .RS
159+ .B Example:
160+ $ xecho -vvvv Tell me more!
161+ .RE
162+
163+ .SH STDIN UPDATE PROTOCOL
164+ By default, xecho reads text from stdin and appends it to the window content.
165+ Some control characters are assigned special functions to allow for advanced usage.
166+ .RS
167+ .BR " \e n" " Start new line"
168+ .RE
169+ .RS
170+ .BR " \e f" " Clear display"
171+ .RE
172+ .RS
173+ .BR " \e r" " Clear current line"
174+ .RE
175+ .RS
176+ .BR " \e b" " Backspace"
177+ .RE
178+ .RS
179+ .B Example:
180+ $ while :; do printf "\e f%s" "$(date)" && sleep 1; done | xecho
181+ .RE
182+ The stdin update facility can be disabled with the
183+ .B -no-stdin
184+ argument.
185+
153186
154187.SH BUGS
155188Font size calculation might be slow on old systems.
0 commit comments