|
C-Menu 0.2.9
A User Interface Toolkit
|
Headder for C-Menu API library, libcm.so. More...
#include "version.h"#include <ncursesw/ncurses.h>#include <signal.h>#include <stddef.h>#include <stdlib.h>Go to the source code of this file.
Data Structures | |
| struct | ChyronKey |
| struct | Chyron |
| struct | RGB |
| struct | ColorPair |
| struct | Arg |
| The Arg structure represents a string argument with a pointer to the string and its allocated length. More... | |
| struct | Argv |
| The Argv structure represents an argument vector, which is an array of Arg structures, along with the number of allocated elements in the array. More... | |
| struct | String |
| The String structure represents a string object with a pointer to the string and its allocated length. More... | |
| struct | WCStr |
| wide character string object with a pointer to the wide character string and its allocated length More... | |
| struct | CCStr |
| complex character objectl with a pointer to the complex character string and its allocated length More... | |
| struct | SIO |
| The SIO structure encapsulates various aspects of the terminal's state and configuration, including color management, file pointers, and terminal device information. More... | |
Macros | |
| #define | _XOPEN_SOURCE_EXTENDED 1 |
| #define | NCURSES_WIDECHAR 1 |
| #define | _GNU_SOURCE |
| #define | nullptr NULL |
| #define | DEBUG false |
| #define | MAX_ARGS 64 |
| #define | MAXLEN 256 |
| #define | MAXARGS 64 |
| #define | SCR_COLS 1024 |
| #define | MAX_DEPTH 3 |
| #define | Ctrl(c) |
| #define | max(a, b) |
| max macro evaluates two expressions, returning greatest result. | |
| #define | min(x, y) |
| min macro evaluates two expressions, returning least result | |
| #define | MAX(a, b) |
| MIN macro for compatibility with code that uses the same name, while avoiding multiple evaluations of the arguments. | |
| #define | MIN(x, y) |
| MAX macro for compatibility with code that uses the same name, while avoiding multiple evaluations of the arguments. | |
| #define | ABS(x) |
| ABS macro for absolute value, which evaluates the expression once and returns the absolute value. | |
| #define | S_TOLOWER(c) |
| #define | S_TOUPPER(c) |
| #define | W_BOX 0x40 |
| #define | COLOR_LEN 8 |
| #define | DEFAULTSHELL "/bin/bash" |
| #define | S_WCOK 0x1000 |
| #define | S_QUIET 0x2000 |
| #define | __atexit |
| This macro registers the end_pgm function to be called when the program exits. | |
| #define | CHYRON_KEY_MAXLEN 64 |
| #define | CHYRON_KEYS 20 |
| #define | FG_COLOR 2 |
| #define | BG_COLOR 0 |
| #define | BO_COLOR 1 |
| #define | LN_COLOR 4 |
| #define | LN_BG_COLOR 7 |
| #define | KEY_ALTF0 0x138 |
| #define | KEY_ALTF(n) |
| #define | XTERM_256COLOR |
| #define | KEY_ALTINS 0x223 |
| #define | KEY_ALTHOME 0x21e |
| #define | KEY_ALTPGUP 0x232 |
| #define | KEY_ALTDEL 0x20e |
| #define | KEY_ALTEND 0x219 |
| #define | KEY_ALTPGDN 0x22d |
| #define | KEY_ALTUP 0x23d |
| #define | KEY_ALTLEFT 0x228 |
| #define | KEY_ALTDOWN 0x214 |
| #define | KEY_ALTRIGHT 0x237 |
| #define | BW_HO L'\x2500' |
| #define | BW_VE L'\x2502' |
| #define | BW_TL L'\x250C' |
| #define | BW_TR L'\x2510' |
| #define | BW_BL L'\x2514' |
| #define | BW_BR L'\x2518' |
| #define | BW_RTL L'\x256d' |
| #define | BW_RTR L'\x256e' |
| #define | BW_RBL L'\x2570' |
| #define | BW_RBR L'\x256f' |
| #define | BW_LT L'\x251C' |
| #define | BW_TT L'\x252C' |
| #define | BW_RT L'\x2524' |
| #define | BW_CR L'\x253C' |
| #define | BW_BT L'\x2534' |
| #define | BW_SP L'\x20' |
| #define | MAXWIN 30 |
| #define | to_uppercase(c) |
| #define | to_lowercase(c) |
| #define | to_uppercase(c) |
Typedefs | |
| typedef unsigned char | uchar |
Enumerations | |
| enum | colors_enum { CLR_BLACK , CLR_RED , CLR_GREEN , CLR_YELLOW , CLR_BLUE , CLR_MAGENTA , CLR_CYAN , CLR_WHITE , CLR_BBLACK , CLR_BRED , CLR_BGREEN , CLR_BYELLOW , CLR_BBLUE , CLR_BMAGENTA , CLR_BCYAN , CLR_BWHITE , CLR_BORANGE , CLR_FG , CLR_BG , CLR_BO , CLR_LN , CLR_LN_BG , CLR_NCOLORS } |
| enum | LFFlags { LF_HIDE = 1 , LF_ICASE = 2 , LF_EXC_REGEX = 4 , LF_REGEX = 8 , LF_EXEC = 16 } |
| enum | FTypes { FT_BLK = 1 , FT_CHR = 2 , FT_DIR = 4 , FT_FIFO = 8 , FT_LNK = 16 , FT_REG = 32 , FT_SOCK = 64 , FT_UNKNOWN = 128 } |
Functions | |
| int | xwgetch (WINDOW *, Chyron *, int) |
| Wrapper for wgetch that handles signals, mouse events, checks for clicks on the chyron line, and accepts a sinigle character answer. | |
| Chyron * | wait_mk_chyron () |
| Create a Chyron struct for the waiting message. | |
| WINDOW * | wait_mk_win (Chyron *, char *) |
| Display a popup waiting message. | |
| int | wait_continue (WINDOW *, Chyron *, int) |
| Update the waiting message with remaining time and check for user input. | |
| bool | wait_destroy (Chyron *) |
| Destroy the waiting message window and chyron. | |
| bool | waitpid_with_timeout (pid_t, int) |
| bool | action_disposition (char *title, char *action_str) |
| void | dump_opts () |
| void | dump_opts_by_use (char *, char *) |
| bool | capture_shell_tioctl () |
| capture_shell_tioctl() - capture shell terminal settings | |
| bool | restore_shell_tioctl () |
| restore_shell_tioctl() - restore shell terminal settings | |
| bool | capture_curses_tioctl () |
| capture_curses_tioctl() - capture curses terminal settings | |
| bool | restore_curses_tioctl () |
| restore_curses_tioctl() - restore curses terminal settings | |
| bool | mk_raw_tioctl (struct termios *) |
| mk_raw_tioctl() - set terminal to raw mode | |
| bool | set_sane_tioctl (struct termios *) |
| set_sane_tioctl() - set terminal to sane settings for C-MENU | |
| int | win_new (int, int, int, int, char *, int) |
| Create a new window with optional box and title. | |
| void | win_redraw (WINDOW *) |
| Redraw the specified window. | |
| void | win_resize (int, int, char *) |
| Resize the current window and its box, and update the title. | |
| void | signal_handler (int) |
| Signal handler for interrupt signals. | |
| bool | handle_signal (sig_atomic_t) |
| void | sig_prog_mode () |
| Set up signal handlers for interrupt signals. | |
| void | sig_dfl_mode () |
| Set signal handlers to default behavior. | |
| bool | mk_dir (char *dir) |
| If directory doesn't exist, make it. | |
| int | segmentation_fault () |
| Function to intentionally cause a segmentation fault for testing purposes. | |
| void | sig_shell_mode () |
| char | di_getch () |
| sget single character from terminal in raw mode | |
| int | enter_option () |
| WINDOW * | win_del () |
| Delete the current window and its associated box window. | |
| void | destroy_win (WINDOW *) |
| void | destroy_box (WINDOW *) |
| void | restore_wins () |
| Restore all windows after a screen resize. | |
| void | cbox (WINDOW *) |
| Draw a box around the specified window. | |
| void | win_init_attrs () |
| Initialize window attributes. | |
| void | win_Toggle_Attrs () |
| void | mvwaddstr_fill (WINDOW *, int, int, char *, int) |
| For lines shorter than their display area, fill the rest with spaces. | |
| int | display_curses_keys () |
| void | init_stdscr () |
| void | curskeys (WINDOW *) |
| void | mouse_getch (int *, int *, int *, int *) |
| void | w_mouse_getch (WINDOW *, int *, int *, int *, int *) |
| void | destroy_curses () |
| Gracefully shut down NCurses and restore terminal settings. | |
| int | a_toi (char *, bool *) |
| a safer alternative to atoi() for converting ASCII strings to integers. | |
| bool | chrep (char *, char, char) |
| Replaces all occurrences of old_chr in s with new_chr in place. | |
| char * | rep_substring (const char *, const char *, const char *) |
| Replace all occurrences of "tgt_s" in "org_s" with "rep_s". | |
| size_t | strip_ansi (char *, char *) |
| Strips ANSI SGR escape sequences (ending in 'm') from string s to d. | |
| bool | strip_quotes (char *) |
| removes leading and trailing double quotes if present | |
| bool | stripz_quotes (char *) |
| removes leading and trailing double quotes if present | |
| int | str_to_args (char **, char *, int) |
| Converts a string into an array of argument strings. | |
| void | destroy_argv (int argc, char **argv) |
| Deallocates memory allocated for argument strings in argv. | |
| bool | str_to_bool (const char *) |
| Converts String to boolean true or false. | |
| bool | str_to_lower (char *) |
| Converts a string to lowercase. | |
| bool | str_to_upper (char *) |
| Converts a string to uppercase. | |
| bool | strnfill (char *, char, int) |
| Fills string s with character c n. | |
| bool | str_subc (char *, char *, char, char *, int) |
| Replaces "ReplaceChr" in "s" with "Withstr" in "d" won't copy more than "l" bytes to "d" Replaces all occurrences of a character in a string with another string, copying the result to a destination buffer. | |
| size_t | strnz (char *, size_t) |
| terminates string at New Line, Carriage Return, or max_len | |
| size_t | strnlf (char *, size_t) |
| terminates string with line feed | |
| char * | strnz_dup (char *, size_t) |
| Allocates memory for and duplicates string s up to length l or until line feed or carriage return. | |
| size_t | ssnprintf (char *, size_t, const char *,...) |
| ssnprintf was designed to be a safer alternative to snprintf. | |
| size_t | strnz__cpy (char *, const char *, size_t) |
| safer alternative to strncpy | |
| size_t | strnz__cat (char *, const char *, size_t) |
| safer alternative to strncat | |
| double | str_to_double (char *) |
| converts string to double | |
| size_t | string_cpy (String *, const String *) |
| Copy src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_cat (String *, const String *) |
| Concatenates src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_ncat (String *, const String *, size_t) |
| Concatenates up to n characters from src String to dest String, allocating additional memory for dest String if necessary. | |
| size_t | string_ncpy (String *, const String *, size_t) |
| copies up to n characters from src String to dest String, allocating additional memory for dest String if necessary | |
| size_t | trim (char *) |
| Trims leading and trailing spaces from string s in place. | |
| size_t | rtrim (char *) |
| Trims trailing spaces from string s in place. | |
| String | to_string (const char *) |
| String functions provide a simple string library to facilitate string manipulation in C, allowing developers to easily create, copy, concatenate, and free strings without having to manage memory manually. | |
| String | mk_string (size_t) |
| Create a String struct with a dynamically allocated string. | |
| String | free_string (String) |
| Free the dynamically allocated String. | |
| void | apply_gamma (RGB *) |
| Apply gamma correction to RGB color. | |
| int | get_clr_pair (int, int) |
| Get color pair index for foreground and background colors. | |
| int | clr_name_to_idx (char *) |
| Get color index from color name. | |
| int | rgb_to_xterm256_idx (RGB *) |
| Convert RGB color to XTerm 256 color index. | |
| bool | init_clr_palette (SIO *) |
| Initialize color palette based on SIO settings. | |
| bool | open_curses (SIO *) |
| Initialize NCurses and color settings. | |
| int | rgb_clr_to_cube (int) |
| int | rgb_to_curses_clr (RGB *) |
| Get color index for RGB color. | |
| RGB | xterm256_idx_to_rgb (int) |
| Convert XTerm 256 color index to RGB color. | |
| int | fork_exec (char **) |
| Fork and exec a command. | |
| int | full_screen_fork_exec (char **) |
| Execute a command in full screen mode. | |
| int | full_screen_shell (char *) |
| Execute a shell command in full screen mode. | |
| int | shell (char *) |
| Execute a shell command. | |
| void | get_rfc3339_s (char *, size_t) |
| int | open_log (char *) |
| void | write_log (char *) |
| void | compile_chyron (Chyron *) |
| construct the chyron string from the chyron structure | |
| void | display_chyron (WINDOW *, Chyron *, int, int) |
| int | get_chyron_key (Chyron *, int) |
| Get keycode from chyron. | |
| bool | is_set_chyron_key (Chyron *, int) |
| Check if function key label is set. | |
| void | set_chyron_key (Chyron *, int, char *, int) |
| void | set_chyron_key_cp (Chyron *, int, char *, int, int) |
| Set chyron key. | |
| void | unset_chyron_key (Chyron *, int) |
| Unset chyron key. | |
| Chyron * | new_chyron () |
| Create and initialize Chyron structure. | |
| Chyron * | destroy_chyron (Chyron *chyron) |
| Destroy Chyron structure. | |
| void | abend (int, char *) |
| Abnormal program termination. | |
| void | display_argv_error_msg (char *, char **) |
| int | display_error (char *, char *, char *, char *) |
| Display an error message window or print to stderr. | |
| int | answer_yn (char *, char *, char *, char *) |
| Accept a single letter answer. | |
| int | display_ok_message (char *) |
| int | Perror (char *) |
| Display a simple error message window or print to stderr. | |
| void | user_end () |
| bool | lf_find (const char *, const char *, const char *, int, int) |
| Find files in a directory matching a regular expression. | |
| size_t | canonicalize_file_spec (char *) |
| Removes quotes and trims at first space. | |
| bool | construct_file_spec (char *, char *, char *, char *, char *, int) |
| bool | file_spec_path (char *, char *) |
| extracts the path component of a file specification | |
| bool | file_spec_name (char *, char *) |
| extracts the file name component of a file specification | |
| bool | is_directory (const char *) |
| Checks if the given path is a directory. | |
| bool | is_valid_regex (const char *) |
| Checks if the given regular expression pattern is valid. | |
| bool | dir_name (char *, char *) |
| Returns the directory name of a file specification. | |
| bool | base_name (char *, char *) |
| Returns the base name of a file specification. | |
| bool | expand_tilde (char *, int) |
| Replace Leading Tilde With Home Directory. | |
| bool | locate_file_in_path (char *, char *) |
| Locates a file in the system PATH. | |
| bool | normalize_file_spec (char *) |
| replace backslashes with forward lashes | |
| bool | trim_ext (char *, char *) |
| trims the file extension from "filename" and copies the result to "buf" | |
| bool | trim_path (char *) |
| Trims trailing spaces and slashes from directory path in place. | |
| bool | verify_file (char *, int) |
| Verifies that the file specified by "in_spec" exists and is accessible with the permissions specified by "imode". | |
| bool | verify_file_q (char *, int) |
| bool | verify_dir (char *, int) |
| Verifies that the directory specified by "spec" exists and is accessible with the permissions specified by "imode". | |
| bool | verify_dir_q (char *, int) |
| bool | verify_spec_arg (char *, char *, char *, char *, int) |
| Verify file specification argument. | |
Variables | |
| int | click_y |
| int | click_x |
| int | wait_timeout |
| bool | f_debug |
| unsigned int | cmd_key |
| int | cp_default |
| int | cp_norm |
| int | cp_win |
| int | cp_box |
| int | cp_bold |
| int | cp_title |
| int | cp_highlight |
| int | cp_reverse |
| int | cp_reverse_highlight |
| int | cp_ln |
| int | cp_ln_bg |
| int | clr_idx |
| int | clr_cnt |
| int | clr_pair_idx |
| int | clr_pair_cnt |
| char const | colors_text [][10] |
| struct termios shell_tioctl | curses_tioctl |
| struct termios shell_in_tioctl | curses_in_tioctl |
| struct termios shell_out_tioctl | curses_out_tioctl |
| struct termios shell_err_tioctl | curses_err_tioctl |
| bool | f_have_shell_tioctl |
| bool | f_have_curses_tioctl |
| bool | f_curses_open |
| bool | f_restore_screen |
| volatile sig_atomic_t | sig_received |
| cchar_t | CCC_NORM |
| cchar_t | CCC_WIN |
| cchar_t | CCC_BOX |
| cchar_t | CCC_REVERSE |
| cchar_t | CCC_LN |
| const wchar_t | bw_ho |
| const wchar_t | bw_ve |
| const wchar_t | bw_tl |
| const wchar_t | bw_tr |
| const wchar_t | bw_bl |
| const wchar_t | bw_br |
| const wchar_t | bw_lt |
| const wchar_t | bw_tt |
| const wchar_t | bw_rt |
| const wchar_t | bw_cr |
| const wchar_t | bw_bt |
| int | n_lines |
| int | n_cols |
| int | lines |
| int | cols |
| int | begx |
| int | begy |
| WINDOW * | win |
| WINDOW * | win_win [MAXWIN] |
| WINDOW * | win_box [MAXWIN] |
| int | win_attr |
| int | win_attr_odd |
| int | win_attr_even |
| int | win_ptr |
| int | mlines |
| int | mcols |
| int | mbegy |
| int | mbegx |
| int | mg_action |
| int | mg_col |
| int | mg_line |
| int | eargc |
| char | earg_str [MAXLEN] |
| char * | eargv [MAXARGS] |
| int | tty_fd |
| int | dbgfd |
| int | src_line |
| char * | src_name |
| char | fn [MAXLEN] |
| char | em0 [MAXLEN] |
| char | em1 [MAXLEN] |
| char | em2 [MAXLEN] |
| char | em3 [MAXLEN] |
| int | exit_code |
| char | errmsg [] |
| #define __atexit |
This macro registers the end_pgm function to be called when the program exits.
Definition at line 194 of file cm.h.
| #define ABS | ( | x | ) |
ABS macro for absolute value, which evaluates the expression once and returns the absolute value.
Definition at line 103 of file cm.h.
| #define BW_HO L'\x2500' |
| #define CHYRON_KEY_MAXLEN 64 |
| #define CHYRON_KEYS 20 |
| #define KEY_ALTINS 0x223 |
EXTENDED NCURSES KEYS
Key code bindings are customarily defined in terminfo. xterm-256color tends to be the most complete, and indeed, it seems to work with Ghostty, Kitty, and Alacritty. If you want to use the altkey bindings, you may need to set your terminal's TERM environment variable to xterm-256color. Here's why:
Ghostty, Kitty, and Alacritty all come with their own terminfo files:
Ghostty with xterm-ghostty, Kitty with xterm-kitty, and Alacritty with alacritty
None of the three produced the correct extended altkey bindings when paired with the terminfo provided in their distribution, yet all three worked with xterm-256color.
The extended altkeys were not defined in any of the terminfo files, not even xterm-256color. Yet, xterm-256color produced consistent keycode bindings with all three emulators. The standard key bindings, ins, delete, up, down arrows, etc., were the same for all three terminfos, and all three emulators produced the correct key bindings for those keys.
The fact that xterm-256color produced consistent keycode bindings for the altkeys, while the other three terminfos did not, is likely due to the fact that xterm-256color is more widely used and has better support for extended key bindings, even if they are not explicitly defined in the terminfo file. It's possible that xterm-256color has some default behavior or fallback mechanism that allows it to recognize and produce key codes for the altkeys, while the other terminfos do not have such a mechanism in place. This could explain why xterm-256color produced consistent keycode bindings for the altkeys across all three emulators, while the other terminfos did not.
| #define MAX | ( | a, | |
| b ) |
MIN macro for compatibility with code that uses the same name, while avoiding multiple evaluations of the arguments.
| #define max | ( | a, | |
| b ) |
max macro evaluates two expressions, returning greatest result.
These macros use compound statements to create local scopes for the temporary variables _x and _y, which store the values of x and y, respectively. This ensures that if x or y have side effects (such as being incremented), they will only be evaluated once when the macro is expanded.
| #define MAX_ARGS 64 |
| #define MAXWIN 30 |
| #define MIN | ( | x, | |
| y ) |
| #define min | ( | x, | |
| y ) |
| #define SCR_COLS 1024 |
| #define to_lowercase | ( | c | ) |
to_lowercase(c) - convert an uppercase letter to lowercase
| #define to_uppercase | ( | c | ) |
to_uppercase(c) - convert a lowercase letter to uppercase
simple macro to convert a character to uppercase
| #define to_uppercase | ( | c | ) |
to_uppercase(c) - convert a lowercase letter to uppercase
simple macro to convert a character to uppercase
| #define W_BOX 0x40 |
Include Exclude
---------- ----------
LF_BLK 1 0 00000001 7 11111110 block device LF_CHR 2 1 00000010 6 11111101 character device LF_DIR 4 2 00000100 5 11111011 directory LF_FIFO 8 3 00001000 4 11110111 named pipe LF_LNK 16 4 00010000 3 11101111 link LF_REG 32 5 00100000 2 11011111 regular file LF_SOCK 64 6 01000000 1 10111111 socket LF_UNKNOWN 128 7 10000000 0 01111111 unknown box window flag for win_new()
| #define XTERM_256COLOR |
| enum colors_enum |
| enum FTypes |
| Enumerator | |
|---|---|
| FT_BLK | |
| FT_CHR | b00000001 |
| FT_DIR | b00000010 |
| FT_FIFO | b00000100 |
| FT_LNK | b00001000 |
| FT_REG | b00010000 |
| FT_SOCK | b00100000 |
| FT_UNKNOWN | b01000000 |
| enum LFFlags |
|
extern |
Definition at line 1224 of file dwin.c.
References cmd_key, compile_chyron(), destroy_chyron(), display_chyron(), em0, f_curses_open, Chyron::l, new_chyron(), Perror(), set_chyron_key(), ssnprintf(), win_del(), win_new(), win_ptr, win_win, and xwgetch().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 297 of file dwin.c.
References Chyron::cmplx_buf.
Referenced by action_disposition(), answer_yn(), display_error(), display_page(), field_editor(), form_display_fields(), form_post(), form_process(), Perror(), wait_continue(), and wait_mk_win().
|
extern |
|
extern |
|
extern |
dump options to stdout
|
extern |
dump options to stdout
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Create a String struct with a dynamically allocated string.
| l | length of string to create including null terminator |
|
extern |
|
extern |
|
extern |
|
extern |
Trims trailing spaces from string s in place.
| s | - string to trim |
Definition at line 102 of file futil.c.
Referenced by fmt_line().
|
extern |
Definition at line 245 of file dwin.c.
References ChyronKey::cp, cp_reverse, Chyron::key, ChyronKey::keycode, ssnprintf(), and ChyronKey::text.
Referenced by action_disposition(), answer_yn(), display_error(), form_display_fields(), form_post(), form_process(), Perror(), pick_engine(), and wait_mk_chyron().
|
extern |
|
extern |
Converts String to boolean true or false.
| s | - string to convert |
Definition at line 649 of file futil.c.
Referenced by parse_config().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Definition at line 1431 of file dwin.c.
References cmd_key, em0, Perror(), ssnprintf(), wait_continue(), wait_destroy(), wait_mk_chyron(), and wait_mk_win().
Referenced by form_process(), init_pick(), and view_init_input().
|
extern |
|
extern |
|
extern |
beginning x coordinate of the terminal
|
extern |
beginning y coordinate of the terminal
|
extern |
|
extern |
|
extern |
bottom tee
|
extern |
cross
|
extern |
The following are the actual wchar_t variables that will hold the box drawing characters. These correspond to the above Unicode code points. By defining them as wchar_t, we can use them in the ncurses library to draw boxes and lines in the terminal. The variables are named with a "bw_" prefix to indicate that they are box (wide) drawing characters, and they will be initialized with the corresponding Unicode characters defined above. horizontal line
horizontal line
Definition at line 95 of file dwin.c.
Referenced by cbox().
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
top tee
|
extern |
|
extern |
box color pair complex character
Definition at line 148 of file dwin.c.
Referenced by open_curses(), win_new(), and win_resize().
|
extern |
Definition at line 151 of file dwin.c.
Referenced by init_view_boxwin(), init_view_full_screen(), and open_curses().
|
extern |
normal color pair complex character
Definition at line 145 of file dwin.c.
Referenced by open_curses(), and win_del().
|
extern |
reverse color pair complex character
Definition at line 149 of file dwin.c.
Referenced by open_curses().
|
extern |
window color pair complex character
Definition at line 146 of file dwin.c.
Referenced by init_view_boxwin(), init_view_full_screen(), open_curses(), win_new(), and win_resize().
|
extern |
the x coordinate of a mouse click
Definition at line 45 of file dwin.c.
Referenced by field_editor(), form_post(), form_process(), menu_cmd_processor(), picker(), and xwgetch().
|
extern |
the y coordinate of a mouse click
Definition at line 44 of file dwin.c.
Referenced by field_editor(), form_post(), form_process(), menu_cmd_processor(), picker(), and xwgetch().
|
extern |
number of colors used
Definition at line 142 of file dwin.c.
Referenced by init_clr_palette(), and rgb_to_curses_clr().
|
extern |
line number background color pair index current color index
|
extern |
number of color pairs supported by the terminal
Definition at line 144 of file dwin.c.
Referenced by get_clr_pair().
|
extern |
|
extern |
the command key for the current command, for error messages and other output
Definition at line 117 of file dwin.c.
Referenced by action_disposition(), answer_yn(), display_error(), field_navigator(), form_read_data(), init_pick(), view_init_input(), wait_continue(), and waitpid_with_timeout().
|
extern |
color codes for the 16 basic colors
colors_text
Definition at line 91 of file dwin.c.
Referenced by clr_name_to_idx(), and list_colors().
|
extern |
current number of columns (may be less than n_cols if the terminal is resized)
|
extern |
bold color pair index
|
extern |
|
extern |
default color pair index
|
extern |
highlight color pair index
|
extern |
|
extern |
|
extern |
|
extern |
reverse color pair index
Definition at line 139 of file dwin.c.
Referenced by compile_chyron(), field_editor(), open_curses(), and set_chyron_key().
|
extern |
reverse highlight color pair index
Definition at line 140 of file dwin.c.
Referenced by field_editor(), form_process(), and open_curses().
|
extern |
title color pair index
|
extern |
window color pair index
Definition at line 137 of file dwin.c.
Referenced by fmt_line(), mk_cmplx_buf(), open_curses(), and search().
|
extern |
Definition at line 37 of file scriou.c.
Referenced by capture_curses_tioctl(), and restore_curses_tioctl().
|
extern |
Definition at line 35 of file scriou.c.
Referenced by capture_curses_tioctl(), and restore_curses_tioctl().
|
extern |
Definition at line 36 of file scriou.c.
Referenced by capture_curses_tioctl(), and restore_curses_tioctl().
|
extern |
|
extern |
the file descriptor for debug output, for debugging purposes
|
extern |
earg - general use argument string general use argument string, for external commands or error messages
Definition at line 40 of file futil.c.
Referenced by enter_file_spec(), and menu_cmd_processor().
|
extern |
general use argument count, for external commands or error messages
Definition at line 41 of file futil.c.
Referenced by display_pick_help(), enter_file_spec(), form_engine(), form_process(), and menu_cmd_processor().
|
extern |
eargv - argument vector for external commands, or error messages
Definition at line 42 of file futil.c.
Referenced by display_pick_help(), enter_file_spec(), and menu_cmd_processor().
|
extern |
error message string for error messages
Definition at line 132 of file dwin.c.
Referenced by action_disposition(), enter_file_spec(), form_desc_error(), form_parse_desc(), form_process(), form_read_data(), form_write(), get_clr_pair(), handle_signal(), init_view_boxwin(), init_view_full_screen(), lf_find(), mk_dir(), new_init(), new_pick(), new_view(), parse_menu_description(), popup_ckeys(), verify_dir(), verify_file(), view_cmd_processor(), view_init_input(), waitpid_with_timeout(), write_view_buffer(), and xwgetch().
|
extern |
error message string for error messages
Definition at line 133 of file dwin.c.
Referenced by enter_file_spec(), form_desc_error(), form_parse_desc(), form_process(), form_read_data(), form_write(), get_clr_pair(), handle_signal(), init_view_boxwin(), init_view_full_screen(), lf_find(), mk_dir(), new_init(), new_pick(), new_view(), parse_menu_description(), popup_ckeys(), verify_dir(), verify_file(), view_cmd_processor(), view_init_input(), write_view_buffer(), and xwgetch().
|
extern |
error message string for error messages
Definition at line 134 of file dwin.c.
Referenced by enter_file_spec(), form_desc_error(), form_parse_desc(), form_process(), form_read_data(), form_write(), get_clr_pair(), handle_signal(), init_view_boxwin(), init_view_full_screen(), lf_find(), mk_dir(), new_init(), new_view(), parse_menu_description(), popup_ckeys(), verify_dir(), verify_file(), view_cmd_processor(), view_init_input(), write_view_buffer(), and xwgetch().
|
extern |
error message string for error messages
Definition at line 135 of file dwin.c.
Referenced by verify_dir(), and verify_file().
|
extern |
Global variables for error reporting
|
extern |
|
extern |
curses mode is active
Definition at line 33 of file sig.c.
Referenced by action_disposition(), answer_yn(), destroy_curses(), display_error(), handle_signal(), open_curses(), Perror(), and wait_mk_win().
|
extern |
a flag to indicate whether debug output should be printed, for debugging purposes
|
extern |
curses tioctl captured
Definition at line 25 of file scriou.c.
Referenced by capture_curses_tioctl(), and restore_curses_tioctl().
|
extern |
shell tioctl captured
Definition at line 24 of file scriou.c.
Referenced by capture_shell_tioctl(), and restore_shell_tioctl().
|
extern |
whether to restore the screen
|
extern |
function name for error messages
Definition at line 131 of file dwin.c.
Referenced by verify_dir(), and verify_file().
|
extern |
current number of lines (may be less than n_lines if the terminal is resized)
|
extern |
beginning x coordinate of the current window, which can be used to determine the position of the window on the terminal screen.
|
extern |
beginning y coordinate of the current window, which can be used to determine the position of the window on the terminal screen.
|
extern |
number of columns in the current window, which may be less than the total number of columns in the terminal if the window is resized or if multiple windows are being used.
|
extern |
action in progress, which can be used to keep track of the current state of the program and determine how to respond to user input or other events.
|
extern |
window column, which can be used to determine the current column position in the window for displaying text or other content.
|
extern |
window line, which can be used to determine the current line position in the window for displaying text or other content.
|
extern |
number of lines in the current window, which may be less than the total number of lines in the terminal if the window is resized or if multiple windows are being used.
|
extern |
number of columns in the terminal
|
extern |
number of lines in the terminal
|
extern |
Definition at line 31 of file sig.c.
Referenced by handle_signal(), popup_ckeys(), signal_handler(), and xwgetch().
|
extern |
the line number of the source file being processed, for error messages
Definition at line 129 of file dwin.c.
Referenced by verify_dir(), and verify_file().
|
extern |
the name of the source file being processed, for error messages
Definition at line 130 of file dwin.c.
Referenced by verify_dir(), and verify_file().
|
extern |
|
extern |
Definition at line 98 of file futil.c.
Referenced by dump_config(), form_process(), init_pick(), parse_config(), view_init_input(), and write_config().
|
extern |
|
extern |
|
extern |
Ncurses attributes for the current window even lines, which may be different from the attributes for odd lines to create a striped effect in the window.
|
extern |
Ncurses attributes for the current window odd lines, which may be different from the attributes for even lines to create a striped effect in the window.
|
extern |
array of pointers to box windows, indexed by window ID
Definition at line 115 of file dwin.c.
Referenced by destroy_curses(), form_display_screen(), menu_engine(), open_pick_win(), popup_ckeys(), restore_wins(), win_del(), win_new(), and win_resize().
|
extern |
Pointer to the current window pair, box and window, which can be used to keep track of the currently active window and its associated box.
Definition at line 121 of file dwin.c.
Referenced by action_disposition(), answer_yn(), destroy_curses(), display_error(), form_display_screen(), menu_engine(), open_curses(), open_pick_win(), Perror(), popup_ckeys(), restore_wins(), wait_mk_win(), win_del(), win_new(), and win_resize().
|
extern |
array of pointers to windows, indexed by window ID
Definition at line 114 of file dwin.c.
Referenced by action_disposition(), answer_yn(), destroy_curses(), display_error(), form_display_screen(), menu_engine(), open_pick_win(), Perror(), popup_ckeys(), restore_wins(), wait_mk_win(), win_del(), win_new(), and win_resize().