mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-16 00:13:00 +00:00
notcurses-input: document new -m option #2579
This commit is contained in:
parent
73224f03e9
commit
b7bab3ca6d
@ -8,7 +8,7 @@ notcurses-input - Read and display input events
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
**notcurses-input** [**-v**]
|
||||
**notcurses-input** [**-v**] [**-m**]
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
@ -28,9 +28,12 @@ of modifier indicators:
|
||||
* '#'/'.': NumLock was or was not pressed.
|
||||
* 'L'/'R'/'P'/'u': Key was a release, repeat, press, or of unknown type.
|
||||
|
||||
By default, mice events are enabled.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
**-v**: Increase verbosity.
|
||||
**-m**: Inhibit mice events.
|
||||
|
||||
# NOTES
|
||||
|
||||
|
@ -400,7 +400,7 @@ int input_demo(ncpp::NotCurses* nc) {
|
||||
|
||||
static void
|
||||
usage(const char* arg0, FILE* fp){
|
||||
fprintf(fp, "usage: %s [ -v ]\n", arg0);
|
||||
fprintf(fp, "usage: %s [ -v ] [ -m ]\n", arg0);
|
||||
if(fp == stderr){
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@ -417,6 +417,7 @@ int main(int argc, char** argv){
|
||||
nopts.margin_r = 2;
|
||||
nopts.margin_b = 2;
|
||||
nopts.loglevel = NCLOGLEVEL_ERROR;
|
||||
// FIXME handle -m to inhibit mice events
|
||||
if(argc > 2){
|
||||
usage(argv[0], stderr);
|
||||
}else if(argc == 2){
|
||||
|
Loading…
Reference in New Issue
Block a user