Compare commits

...

2 Commits

Author SHA1 Message Date
Boris Faure ea7e8aef10
termio/meson: support ELM_SEL_FORMAT_URILIST 2022-09-28 22:48:13 +02:00
Boris Faure 2eba25b730
tyalpha: better documentation 2022-09-28 22:36:28 +02:00
4 changed files with 13 additions and 6 deletions

View File

@ -10,7 +10,9 @@ List directory contents with bells and whistles
.
.TP
.B tyalpha [-h][-p] on|off|<opacity level>
Set transparency level of the background
Set transparency level of the background.
<opacity> is between 0 and 100.
.
.TP
.B tybg [-h] [-p] [FILE1 FILE2 ...]

View File

@ -93,18 +93,18 @@ if cc.has_function('strchrnul')
config_data.set('HAVE_STRCHRNUL', 1)
endif
url_head_code = '''#include <Ecore_Con.h>
int main(void) { ecore_con_url_head(NULL); return 0; }
sel_format_urilist_code = '''#include <Elementary.h>
int main(void) { return ELM_SEL_FORMAT_URILIST; }
'''
found = 'Not found'
if cc.links(url_head_code, dependencies: terminology_dependencies)
config_data.set('HAVE_ECORE_CON_URL_HEAD', 1)
if cc.links(sel_format_urilist_code, dependencies: terminology_dependencies)
config_data.set('HAVE_ELM_SEL_FORMAT_URILIST', 1)
found = 'Found'
endif
message('Checking for ecore_con_url_head: ' + found)
message('Checking for ELM_SEL_FORMAT_URILIST: ' + found)
eet_bin = get_option('eet')
if eet_bin == ''

View File

@ -1208,6 +1208,9 @@ _getsel_cb(void *data,
case ELM_SEL_FORMAT_IMAGE: fmt = "IMAGE"; break;
case ELM_SEL_FORMAT_VCARD: fmt = "VCARD"; break;
case ELM_SEL_FORMAT_HTML: fmt = "HTML"; break;
#ifdef HAVE_ELM_SEL_FORMAT_URILIST
case ELM_SEL_FORMAT_URILIST: fmt = "URILIST"; break;
#endif
}
WRN(_("unsupported selection format '%s'"), fmt);
}

View File

@ -14,6 +14,8 @@ print_usage(const char *argv0)
" Change the terminal transparency on or off\n"
" -p Make change permanent (stored in config)\n"
HELP_ARGUMENT_DOC"\n"
"\n"
"<opacity> is between 0 and 100\n"
"\n",
argv0);
}