25 if (read(STDIN_FILENO, &c, 1) != 1)
29 if (read(STDIN_FILENO, &seq[0], 1) != 1)
31 if (read(STDIN_FILENO, &seq[1], 1) != 1)
37 else if (seq[1] ==
'B')
39 else if (seq[1] ==
'C')
41 else if (seq[1] ==
'D')
123 if (!shell || !shell->
ui)
139 else if (key >= 32 && key <= 126)
void cmd_execute(t_shell *shell)
Execute the current command buffer & reset it.
void redraw_output_only(t_ui *ui)
Redraw only the output box interior rows without borders nor title.
UI mode structures, macros & function prototypes.
char buf[MAX_CMD_LEN]
Fixed size buffer.
int len
Current input length.
int scroll
Current scroll's offset.
int count
Nbr of stored lines.
struct s_ui * ui
UI state (NULL if off)
int running
Event loop flag.