diff options
| author | Dominik Kaiser | 2024-06-25 14:02:02 +0200 |
|---|---|---|
| committer | GitHub | 2024-06-25 14:02:02 +0200 |
| commit | 97cca528658e5b811a56600b7c0b4f9c11bf83fc (patch) | |
| tree | 38120dd91e74a8f5073a5af414245ccbf4fbd417 /include/minishell.h | |
| parent | 0d7a57a7bc14831d6d7076ccb0ea7a7213ddd7fb (diff) | |
| download | minishell-97cca528658e5b811a56600b7c0b4f9c11bf83fc.tar.gz minishell-97cca528658e5b811a56600b7c0b4f9c11bf83fc.zip | |
Add basic command line
* Initialize terminal and signal handling
* Add basic repl that doesn't do anything yet
* Add handling for Ctrl-C, Ctrl-D and Ctrl-\ in interactive mode
Diffstat (limited to 'include/minishell.h')
| -rw-r--r-- | include/minishell.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/minishell.h b/include/minishell.h index 9ebc58f..4f85144 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */ -/* Updated: 2024/06/24 18:51:30 by dkaiser ### ########.fr */ +/* Updated: 2024/06/25 13:52:24 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -15,5 +15,16 @@ # include "debug_tools.h" # include "libft.h" +# include <stdio.h> +# include <readline/readline.h> +# include <signal.h> +# include <stdlib.h> +# include <termios.h> +# include <unistd.h> + +int init(void); +int init_signal_handling(void); + +void repl(const char *prompt); #endif |
