tape-kernel 1.0
a modular modern independent kernel
Loading...
Searching...
No Matches
editor.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define editor   __editor

Functions

void __editor (const char *filename)
 a simple multiline text editor

Macro Definition Documentation

◆ editor

#define editor   __editor

Definition at line 4 of file editor.h.

Referenced by __shell().

Function Documentation

◆ __editor()

void __editor ( const char * filename)

a simple multiline text editor

to call this editor simply use

#include "../usr/editor.h" //or simply editor.h
editor(filename); //fill in the file to edit
#define editor
Definition editor.h:4

and it will automatically break back to your loop or func (not exit)

Definition at line 120 of file editor.c.

References clscr, cob, delay, editor_display(), editor_load(), editor_save(), gtchr, line_count, lines, MAX_LINE_LEN, MAX_LINES, NULL, prt, and rdln.