ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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 []

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 131 of file tui/mdns.c.

Field Documentation

◆ count

int mdns_snapshot_t::count

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

◆ input

char mdns_snapshot_t::input[32]

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

◆ list

ui_selectable_list_t mdns_snapshot_t::list

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

◆ live

bool mdns_snapshot_t::live

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

◆ servers

ui_mdns_server_t mdns_snapshot_t::servers[]

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


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