PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
interactive.c File Reference
#include "interactive.h"
#include "ansi.h"
#include "history.h"
#include "pipeline.h"
#include <errno.h>
#include <signal.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/defs.h>
#include <sys/io.h>
#include <sys/kbd.h>
#include <sys/proc.h>
#include <threads.h>
Include dependency graph for interactive.c:

Go to the source code of this file.

Functions

static void interactive_sigint_handler (int sig)
 
static void interactive_prompt (void)
 
static void interactive_execute (void)
 
static void interactive_handle_ansi (ansi_result_t *result)
 
static void interactive_handle_input (const char *input, uint64_t length)
 
void interactive_shell (void)
 

Variables

static ansi_t ansi
 
static history_t history
 
static char buffer [MAX_PATH]
 
static uint64_t pos
 

Function Documentation

◆ interactive_sigint_handler()

static void interactive_sigint_handler ( int  sig)
static

Definition at line 23 of file interactive.c.

Here is the caller graph for this function:

◆ interactive_prompt()

static void interactive_prompt ( void  )
static

Definition at line 30 of file interactive.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interactive_execute()

static void interactive_execute ( void  )
static

Definition at line 41 of file interactive.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interactive_handle_ansi()

static void interactive_handle_ansi ( ansi_result_t result)
static
Todo:
Implement tab completion

Definition at line 90 of file interactive.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interactive_handle_input()

static void interactive_handle_input ( const char input,
uint64_t  length 
)
static

Definition at line 211 of file interactive.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ interactive_shell()

void interactive_shell ( void  )

Definition at line 230 of file interactive.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ansi

ansi_t ansi
static

Definition at line 18 of file interactive.c.

◆ history

history_t history
static

Definition at line 19 of file interactive.c.

◆ buffer

char buffer[MAX_PATH]
static

Definition at line 20 of file interactive.c.

◆ pos

uint64_t pos
static

Definition at line 21 of file interactive.c.