aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-06-25 14:02:02 +0200
committerGitHub2024-06-25 14:02:02 +0200
commit97cca528658e5b811a56600b7c0b4f9c11bf83fc (patch)
tree38120dd91e74a8f5073a5af414245ccbf4fbd417 /src/main.c
parent0d7a57a7bc14831d6d7076ccb0ea7a7213ddd7fb (diff)
downloadminishell-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 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2699de3..016ede6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 17:14:03 by dkaiser #+# #+# */
-/* Updated: 2024/06/22 17:14:36 by dkaiser ### ########.fr */
+/* Updated: 2024/06/25 13:58:24 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,5 +14,7 @@
int main(void)
{
- return (0);
+ if (init())
+ return (1);
+ repl("Minishell $ ");
}