ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
mdns_snapshot_t Struct Reference

TUI-based server selection with formatted display. More...

Data Fields

int count
bool live
ui_selectable_list_t list
char input [32]
ui_mdns_server_t servers [1]

Detailed Description

TUI-based server selection with formatted display.

Displays discovered servers in a terminal UI with the following features:

  • Clears terminal and displays formatted server list
  • Shows "No results" message if no servers available
  • Supports arrows/j/k, Enter, numeric entry, refresh and cancellation
  • Keeps the selected row visible in a terminal-sized viewport
Parameters
serversArray of discovered servers
countNumber of servers
Returns
0-based index of selected server, or -1 to cancel

Definition at line 134 of file tui/mdns.c.

Field Documentation

◆ count

int mdns_snapshot_t::count

Definition at line 135 of file tui/mdns.c.

◆ input

char mdns_snapshot_t::input[32]

Definition at line 138 of file tui/mdns.c.

◆ list

ui_selectable_list_t mdns_snapshot_t::list

Definition at line 137 of file tui/mdns.c.

◆ live

bool mdns_snapshot_t::live

Definition at line 136 of file tui/mdns.c.

◆ servers

ui_mdns_server_t mdns_snapshot_t::servers[1]

Definition at line 139 of file tui/mdns.c.


The documentation for this struct was generated from the following file: