add menu example to README

This commit is contained in:
nick black 2020-02-14 05:52:33 -05:00 committed by Nick Black
parent 43bf0874d7
commit 6e97501ef7

View File

@ -2220,6 +2220,17 @@ void ncselector_destroy(struct ncselector* n, char** item);
### Menus
```
Schwarzgerät File Help
xxxxxxxxxxxxxxxx╭─────────────╮xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx│New Ctrl+n│xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx│Open Ctrl+o│xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx│Close Ctrl+c│xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx├─────────────┤xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx│Quit Ctrl+q│xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx╰─────────────╯xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
Horizontal menu bars are supported, on the top or bottom rows of the screen. If
the menu bar is longer than the screen, it will be only partially visible, but
any unrolled section will be visible. Menus may be either visible or invisible