better powerline and signal fixes

This commit is contained in:
gazhonsepaskwa
2025-02-12 09:41:44 +01:00
parent ced584b17a
commit 3bb3fce50d
4 changed files with 30 additions and 28 deletions

View File

@@ -30,3 +30,18 @@ void init_sig(void)
(sa[1]).sa_handler = handle_sigquit;
sigaction(SIGQUIT, &(sa[1]), NULL);
}
void handle_sigint(int sig)
{
(void)sig;
write(2, "\n\n", 2);
rl_on_new_line();
rl_replace_line("", 0);
rl_redisplay();
}
void handle_sigquit(int sig)
{
(void)sig;
// ft_printf("\b\b");
}