struct telnet_connection {
char *prompt;
+ bool prompt_visible;
enum telnet_states state;
char line[TELNET_LINE_MAX_SIZE];
- int line_size;
- int line_cursor;
+ size_t line_size;
+ size_t line_cursor;
char last_escape;
char *history[TELNET_LINE_HISTORY_SIZE];
- int next_history;
- int current_history;
- int closed;
+ size_t next_history;
+ size_t current_history;
+ bool closed;
};
struct telnet_service {