mirror of
https://github.com/m1ngsama/TNT.git
synced 2025-12-24 10:51:41 +00:00
- Implement SSH server using libssh for secure connections - Replace insecure telnet with encrypted SSH protocol - Add automatic terminal size detection via PTY requests - Support dynamic window resize (SIGWINCH handling) - Fix UI display bug by using SSH channel instead of fd - Update tui_clear_screen to work with SSH connections - Add RSA host key auto-generation on first run - Update README with SSH instructions and security notes - Add libssh dependency to Makefile with auto-detection - Remove all telnet-related code Security improvements: - All traffic now encrypted - Host key authentication - No more plaintext transmission
28 lines
650 B
C
28 lines
650 B
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 input line */
|
|
void tui_render_input(struct client *client, const char *input);
|
|
|
|
/* Clear the screen */
|
|
void tui_clear_screen(struct client *client);
|
|
|
|
/* Get help text based on language */
|
|
const char* tui_get_help_text(help_lang_t lang);
|
|
|
|
#endif /* TUI_H */
|