Minishell
Loading...
Searching...
No Matches
input_processing.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void enable_raw_mode (void)
 
void disable_raw_mode (void)
 
void add_char (int *index, char *command, char c)
 
void while_ask_command (int *index)
 

Function Documentation

◆ 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
indexis the current cursor position
commandthis is the command string that is typed
cthis is the current wrintten char
Here is the call graph for this function:

◆ 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
indexcurrent position of the cursor
Here is the call graph for this function: