|
C-Shell
A simple shell written in C.
|
User input handling and terminal manipulation. More...
#include <dirent.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include "internal_commands.h"#include "internal/history.h"#include "terminal.h"Data Structures | |
| struct | filter_context |
Functions | |
| void | backspace (size_t n) |
| Prints a 'backspace' n times. | |
| size_t | read_line (char *buffer, size_t buffer_size) |
| Reads a line from stdin. | |
| int | set_term_flag (int term_des, tcflag_t flag, bool set) |
| Sets a terminal flag. | |
User input handling and terminal manipulation.
| void backspace | ( | size_t | n | ) |
Prints a 'backspace' n times.
| size_t read_line | ( | char * | buffer, |
| size_t | buffer_size ) |
Reads a line from stdin.
| buffer | The buffer to write into. |
| buffer_size | The size of the provided buffer. |
| int set_term_flag | ( | int | term_des, |
| tcflag_t | flag, | ||
| bool | set ) |
Sets a terminal flag.
| term_des | The terminal descriptor. |
| flag | The flag to modify. |
| set | Whether to set or unset the flag. |