Go to the source code of this file.
◆ add_char()
void add_char |
( |
int * | index, |
|
|
char * | command, |
|
|
char | c ) |
This function add a char in the place of the cursor and moves
- Parameters
-
index | is the current cursor position |
command | this is the command string that is typed |
c | this is the current wrintten char |
◆ disable_raw_mode()
void disable_raw_mode |
( |
void | | ) |
|
Enable printing things to the terminal when writing and also enable canonical mode which enables to read input when a line delimiter is found
◆ enable_raw_mode()
void enable_raw_mode |
( |
void | | ) |
|
Disables printing things to the terminal when writing and also enables non-canonical mode which enables you to read input immediately is types
◆ while_ask_command()
void while_ask_command |
( |
int * | index | ) |
|
This function loops until the user stop writing or there is a new line and process the input
- Parameters
-
index | current position of the cursor |