TNT/include/tui.h

38 lines
1.1 KiB
C

#ifndef TUI_H
#define TUI_H
#include "common.h"
#include "message.h"
/* Client structure (forward declaration) */
struct client;
/* Render the main screen */
void tui_render_screen(struct client *client);
/* Render the help screen */
void tui_render_help(struct client *client);
/* Render the command output screen */
void tui_render_command_output(struct client *client);
/* Render the MOTD screen. Reads the message text from
* client->command_output (shared storage); the show_motd flag selects
* this renderer over tui_render_command_output. */
void tui_render_motd(struct client *client);
/* Render the input line */
void tui_render_input(struct client *client, const char *input);
/* Render only the command input/status line */
void tui_render_command_input(struct client *client);
/* Clear the screen */
void tui_clear_screen(struct client *client);
/* Render the pre-login welcome banner. Centered, framed, shown once before
* the username prompt. Caller is responsible for printing the prompt
* itself afterwards. */
void tui_render_welcome(struct client *client);
#endif /* TUI_H */