QMENU(1)
Okay bestie, sit down, hydrate, because we're learning qmenu(1) β that's a General Commands Manual page, and it's literally the cutest way to build menus for terminal interfaces. No cap. π
π NAME π
qmenu β a tool to create simple menus for terminal interfaces π
πΈ SYNOPSIS πΈ
qmenu [OPTION] [menu_filename]
β¨ DESCRIPTION β¨
qmenu creates textual menus in an easy and intuitive way. That's it, that's the whole vibe. β¨
π OPTIONS π
-initβ creates the configuration file"qmenu.cfg"π«Ά-modelβ creates a menu file model"model.mnu"π¦menu_filenameβ the file (with.mnuextension) containing the menu's outline π
π¦ SYNOPSYS π¦
yes the heading is spelled like that, we don't make the rules, we just respect the source π
qmenu lets you create menus for textual interfaces in an easy and intuitive way. Each menu is defined in a file (with extension .mnu) containing the menu's outline. That file is composed by three sections:
- Screen Area
- Item Area
- Option Area
The sections are delimited by the characters $$ and %%, respectively:
Screen area
$$
Item area
%%
Option area
πΌοΈ Screen area
This area spans from the beginning of the file to the symbol $$, and it contains the "drawing" of the menu in text format. To make menu options selectable, they must be included between two symbols ^
Example:
^1. Option 1^
^2. Option 2^
The options can be highlighted with arrow keys or by pressing the first character of the string. In this area you can also add some variables according to the following syntax:
x[NAME_VARIABILE]
The name of the variable is made up by a prefix (x) and a name between square brackets. The possible values are:
cβ Centeredlβ Left-justifiedrβ Right-justified
Note: if the symbol is capitalized, the value is shown in reverse π
Variables can assume the following values:
TIMEβ Current time β°MENUNAMEβ Menu's nameINFOTERMβ Terminal's nameMNUTRACEβ Path menu
Special variables:
&β Cursor position${PATH}β Displays the contents of the environment variablePATH
Example:
C[TITLE] - Menu title centered and in reverse
π Item area
In this section, for each menu item you can define:
- The action to perform
- An help message
- An empty row
Each item is made up by 3 lines:
- Menu option
- Command to perform
- Help message
- In the first line, insert the first character of the string containing the menu option
- In the second line you can specify:
- A shell command
- A submenu to open (
$menunamewithout extension) - A reserved command (
returnto go to the previous menu,endto quit menu)
- In the third line you can specify a message. This message will replace the variable
TITLEin the "Screen area"
Example:
%1
ls -lisa; pause
This item shows shell file list
βοΈ Option area
This section contains a series of generic settings:
TITOLO - Menu title
RVS_ROW=0,22 - Lines displayed in reverse. In this case the lines 0 22
NOKEYDISP - Disables automatic visualization of function keys labels (ET[1-10])
ET[1-10] - Text shown to function key n if NOKEYDISP commented
FZ[1-10] - Command (shell) for the function key n
PW[1-10] - Password to set for the function key n
SHELL=sh - Pressing shift-f1 starts a shell session
EDITOR=vi - Pressing shift-f2 starts vi with the current menu
π AUTHORS π
Written by Stefano Teodorani β <https://github.com/teopost>. Translated by Lorenzo Teodorani β <https://github.com/teopost2>. Thanks to Giovanni Juan Oteri β <https://twitter.com/giovannioteri>
the whole team ate, fr fr π«Ά
π REPORTING BUGS π
Please, report bugs to <https://github.com/teopost/qmenu/issues> General help using software: <https://github.com/teopost/qmenu> Report qmenu translation bugs to <https://github.com/teopost/qmenu/issues>
π COPYRIGHT π
Copyright Β© 1992-2014 Stefano Teodorani
qmenu is free software: you are free to modify and/or redistribute it under the terms of the GNU General Public License version 3, or any later version. You should have received a copy of the GNU General Public License along with the source for qmenu, see the file COPYING. If now, you can find it at <http://gnu.org/licenses/gpl.html>.
qmenu is distributeded 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
not the "distributeded" π but bestie we are transcribing, not editing, and we love her exactly as she is π
okay that's the whole page, you're a qmenu girlie now, go make some menus π
This beauty dropped on 6 September 2014, and it lives in section QMENU(1). Mwah. πΈπ¦π
π¦ where this page comes from
- ubuntu jammy: qmenu 5.0.2-2build3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms