mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「✨」 feat: ctrl \ handled
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
|
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/07/13 16:55:57 by adjoly ### ########.fr */
|
/* Updated: 2024/07/13 18:51:03 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -54,7 +54,9 @@ int main(int ac, char **av, char **env)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
signal(SIGINT, &sig_c);
|
signal(SIGINT, &sig_c);
|
||||||
|
signal(SIGQUIT, SIG_IGN);
|
||||||
prompt = get_prompt(env_l);
|
prompt = get_prompt(env_l);
|
||||||
|
|
||||||
rl = readline(prompt);
|
rl = readline(prompt);
|
||||||
free(prompt);
|
free(prompt);
|
||||||
if (!rl)
|
if (!rl)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/06/05 21:14:04 by adjoly #+# #+# */
|
/* Created: 2024/06/05 21:14:04 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/07/13 17:21:59 by adjoly ### ########.fr */
|
/* Updated: 2024/07/13 18:48:16 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user