Skip to content
Stephen Millard edited this page Mar 18, 2023 · 3 revisions

Information Entries

To add an information entry to the Ste-Mux menus, you just output a text string. The following command for example will output a menu item called "Just for info".

echo 'Just for info'

Sub Menus

Sub Menus of commands can be created through the prefix of hyphens to menu item names.

For the root level, there are no hyphens prefixed.

To make an item part of a root level sub menu, you add two hyphens to the start of the name, and it becomes a sub item of the entry before it. To make an item part of a sub menu of an item in a sub menu of a root item, you addd four hyphens to the start. And so on.

The following script content would generate a sub menu structure like the one shown in the screenshot below.

echo 'foo'
echo '--foo-1'
echo '--bar-1'
echo '----bar-1.1'
echo '----bar-1.2'
echo '------baz 1.2.1'
echo '------baz 1.2.2'
echo '----bar-1.3'

Menu Separators

To create a section separator (horizontal line) in the Ste-Mux menus, to help break up sets of menu items, you can use a simple echo command to output three hyphens.

echo '---'

If you want to create a menu separator in a first-level sub menu, then just like with any other menu item, you just add a couple of additional hyphens to the output.

echo "-----"

This then continues through the various levels just like the other items.