6 .Nd simple menu for XOrg
10 utility a simple graphical menu for XOrg. It read the items from
12 and print the user selection to
17 Most of the appearance of the menu is defined through the \fBX
20 Application specific resources:
23 The font name to use. By default is set to "fixed" if compiled without
24 Xft(3) support, "monospace" otherwise. Without Xft(3) only bitmap font
27 The layout of the menu. The possible values are "horizontal" and
28 "vertical", with the default being "horizontal". Every other value
29 than "horizontal" is treated like "vertical", but this is kinda an
30 implementation detail and not something to be relied on, since in the
31 future other layout could be added as well.
33 A string that is rendered before the user input. Default to "$ ".
35 The width of the menu. If a numeric value is given (e.g. 400) is
36 interpreted as pixel, if it ends with a percentage symbol `%'
37 (e.g. 40%) the relative percentage will be computed (relative to the
40 The height of the menu. Like MyMenu.width if a numeric value is given
41 is interpreted as pixel, if it ends with a percentage symbol `%' the
42 relative percentage will be computed (relative to the monitor height).
44 The X coordinate of the topmost left corner of the window. Much like
45 MyMenu.height and MyMenu.width both a pixel dimension and percentage
46 could be supplied. In addition to it, the special value "middle" could
47 be used: in that case the window will be centered on the x axes.
49 The Y coordinate of the topmost left corner of the window. Like the X
50 coordinate, pixel dimension, percentage dimension and the special
51 value "middle" could be supplied.
52 .It MyMenu.prompt.background
53 The background of the prompt.
54 .It MyMenu.prompt.foreground
55 The text color (foreground) of the prompt.
56 .It MyMenu.completion.background
57 The background of the completions.
58 .It MyMenu.completion.foreground
59 The text color of the completions.
60 .It MyMenu.completion_highlighted.background
61 The background of the selected completion.
62 .It MyMenu.completion_highlighted.foreground
63 The foreground of the selected completion.
67 .Bl -tag -width indent-two
69 Close the menu without selecting any entry
71 Close the menu and print to stdout what the user typed
75 Expand the prompt to the next possible completion
77 Expand the prompt to the previous possible completion
79 Delete the last character
91 If, instead of a numeric value, a not-valid number that terminates
92 with the % sign is supplied, then the default value for that field
93 will be treated as a percentage. Since this is a misuse of the
94 resources this behavior isn't strictly considered a bug.
96 C-w (delete last word) does not work well with multi-byte string. The
97 whole UTF-8 support is still kinda naïve and should be improved.
102 0 when the user select an entry, 1 when the user press Esc and
103 EX_UNAVAILABLE if the connection to X fails.
110 .An Omar Polo <omar.polo@europecom.net>