PatchworkOS
Loading...
Searching...
No Matches
interactive.c File Reference
#include "interactive.h"
#include "ansi.h"
#include "history.h"
#include "pipeline.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/io.h>
#include <sys/kbd.h>
#include <sys/proc.h>

Go to the source code of this file.

Data Structures

struct  interactive_state_t
 

Functions

static void interactive_prompt (void)
 
static uint64_t interactive_execute_command (interactive_state_t *state)
 
static uint64_t interactive_handle_ansi (interactive_state_t *state, ansi_result_t *result)
 
static uint64_t interactive_handle_input (interactive_state_t *state, const char *input, uint64_t length)
 
int interactive_shell (void)
 

Function Documentation

◆ interactive_execute_command()

◆ interactive_handle_ansi()

◆ interactive_handle_input()

static uint64_t interactive_handle_input ( interactive_state_t state,
const char *  input,
uint64_t  length 
)
static

◆ interactive_prompt()

static void interactive_prompt ( void  )
static

Definition at line 15 of file interactive.c.

References ERR, fflush(), MAX_PATH, printf(), readfile(), stdout, and strcpy().

Referenced by interactive_handle_ansi(), and interactive_shell().

◆ interactive_shell()