add select output option -o

solves #7
This commit is contained in:
sewn 2024-07-22 19:36:34 +03:00
parent a3f4ba90bd
commit f2fe31135b
No known key found for this signature in database
3 changed files with 42 additions and 5 deletions

View file

@ -11,6 +11,9 @@ static uint32_t colors[][2] = {
[SchemeOut] = { 0x000000ff, 0x00ffffff },
};
/* -m option; if provided, use that output instead of default output */
static const char *output_name = NULL;
/* -l option; if nonzero, use vertical list with given number of lines */
static unsigned int lines = 0;