zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
Emoji/icon rendering helpers based on terminal/locale detection. More...
#include "zpmod.mdh"
#include "zpmod.pro"
#include "zpmod_vendor_shims.h"
#include <locale.h>
#include <string.h>
#include <unistd.h>
#include "zpmod_emoji.h"
Go to the source code of this file.
Functions | |
int | zp_icons_enabled (void) |
Determine if icons should be emitted to stdout. More... | |
const char * | zp_icon (const char *s) |
Return icon string if enabled, empty string otherwise. More... | |
Variables | |
static int | s_cached = -1 |
Emoji/icon rendering helpers based on terminal/locale detection.
Definition in file emoji.c.
const char* zp_icon | ( | const char * | s | ) |
Return icon string if enabled, empty string otherwise.
Return the given icon string if icons are enabled, else empty string.
Definition at line 58 of file emoji.c.
References zp_icons_enabled().
Referenced by bin_zpdirlist(), bin_zpmod(), bin_zppathstat(), bin_zpreadfile(), cmd_pathstat(), readarray_usage(), rh_write(), zp_append_report(), zp_build_source_report(), zp_cc_ensure_dir(), zp_cc_incremental_update(), zp_cc_rebuild(), zp_compaudit_cache_core(), zp_rehash_diff_core(), zp_rh_dir(), and zpmod_usage().
int zp_icons_enabled | ( | void | ) |
Determine if icons should be emitted to stdout.
Determine if emoji/icons should be printed.
Definition at line 25 of file emoji.c.
References getsparam(), and s_cached.
Referenced by zp_icon().
|
static |
Definition at line 22 of file emoji.c.
Referenced by zp_icons_enabled().