Quash Shell  0.1
A simple yet powerfull shell program
 All Classes Files Functions Variables Typedefs Enumerations Macros
quash.h
Go to the documentation of this file.
1 
7 #ifndef SRC_QUASH_H
8 #define SRC_QUASH_H
9 
10 #include <stdbool.h>
11 #include <stdio.h>
12 #include <stdlib.h>
13 
14 #include "execute.h"
15 
19 typedef struct QuashState {
20  bool running;
21  bool is_a_tty;
23  char* parsed_str;
25 } QuashState;
26 
32 bool is_tty();
33 
41 char* get_command_string();
42 
48 bool is_running();
49 
53 void end_main_loop();
54 
55 #endif // QUASH_H
char * parsed_str
Definition: quash.h:23
struct QuashState QuashState
Holds information about the state and environment Quash is running in.
bool is_tty()
Check if Quash is receiving input from the command line (TTY)
Definition: quash.c:92
bool running
Definition: quash.h:20
char * get_command_string()
Get a deep copy of the current command string.
Definition: quash.c:87
Functions for interpreting and running commands.
Holds information about the state and environment Quash is running in.
Definition: quash.h:19
bool is_a_tty
Definition: quash.h:21
bool is_running()
Query if quash should accept more input or not.
Definition: quash.c:82
void end_main_loop()
Causes the execution loop to end.
Definition: quash.c:97