29 if (ft_strncmp(ui->
cmd.
buf,
"exit", 4) == 0 && (ui->
cmd.
buf[4] ==
'\0'
35 if (ft_strncmp(ui->
cmd.
buf,
"clear", 5) == 0 && (ui->
cmd.
buf[5] ==
'\0'
56 if (!shell || !shell->
ui)
static int exec_ui_builtin(t_shell *shell)
Handle "exit" and "clear" commands directly.
void cmd_execute(t_shell *shell)
Execute the current command buffer & reset it.
void execute_minishell_cmd(t_shell *shell)
Fork a child to execute a minishell command & capture its output.
UI mode structures, macros & function prototypes.
void out_clear(t_out *out)
Free stored output lines and reset the scroll state.
char buf[MAX_CMD_LEN]
Fixed size buffer.
int len
Current input length.
struct s_ui * ui
UI state (NULL if off)
int running
Event loop flag.
void update_waifu_mood(t_ui *ui, int mood)
Set the waifu mood.