ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
keyboard_help.h File Reference

🆘 Interactive keyboard help overlay for session keyboard shortcuts More...

Go to the source code of this file.

Typedefs

typedef struct session_display_ctx session_display_ctx_t

Functions

void keyboard_help_toggle (session_display_ctx_t *ctx)
 Toggle keyboard help on/off.
void keyboard_help_toggle_terminal (int fd)
int keyboard_help_parent_screen (void)
const char * keyboard_help_screen_name (int parent)
bool keyboard_help_is_active (session_display_ctx_t *ctx)
 Check if keyboard help is currently active.
void keyboard_help_render (session_display_ctx_t *ctx)
 Render keyboard help TUI overlay.
void session_display_set_global_context (session_display_ctx_t *ctx)
 Set the global display context (for signal handlers like Ctrl+C).
bool keyboard_help_is_active_global (void)
 Check if keyboard help is active (global accessor for signal handlers).
void keyboard_help_toggle_global (void)
 Toggle keyboard help (global accessor for signal handlers).
void keyboard_help_signal_cancel (void)
 Request help screen closure from signal handler (Ctrl+C).
bool keyboard_help_check_signal_cancel (void)
 Check if help screen closure was requested by signal handler.
int keyboard_help_previous_interactive (void)

Detailed Description

🆘 Interactive keyboard help overlay for session keyboard shortcuts

Definition in file keyboard_help.h.

Function Documentation

◆ keyboard_help_previous_interactive()

int keyboard_help_previous_interactive ( void )

Interactive selection retained beneath help, including when errors cover it.

Definition at line 13 of file keyboard_help.c.

13 {
14 return atomic_load(&g_help_previous);
15}

Referenced by keyboard_help_toggle_terminal(), and stats_runtime_active().