Minishell
|
#include "../../include/main.h"
#include "../../include/custom_commands.h"
#include <sys/stat.h>
#include "../../include/run_command.h"
#include "../../include/utils.h"
Functions | |
void | init_history (history_t *history) |
int | utils_is_digit (const char *str) |
int | command_is_digit (const char *str) |
void | free_utils_arrow_command (data_t *dt, char *path, char **arr, char *lines) |
void | up_down_command (data_t *data, bool up_direction, int *his_idx) |
int command_is_digit | ( | const char * | str | ) |
void free_utils_arrow_command | ( | data_t * | dt, |
char * | path, | ||
char ** | arr, | ||
char * | lines ) |
void init_history | ( | history_t * | history | ) |
void up_down_command | ( | data_t * | data, |
bool | up_direction, | ||
int * | his_idx ) |
Move cursor up or down by using arrow keys
data | |
up_direction | bool false if up/ true if down |
his_idx | index of the history |
int utils_is_digit | ( | const char * | str | ) |