Files
Nomi/source/editor.c
2025-10-30 18:08:11 -07:00

57 lines
921 B
C

#ifndef EDITOR_H
#define EDITOR_H
#include <tart.h>
struct tart_window window;
struct commandMode {
struct tart_cstring prompt_cstr;
struct tart_cstring input_cstr;
char inputBuffer[255];
int inputBufferIdx;
char* input;
};
struct InsertMode {
};
void Create_commandMode();
void CreateWindow() {
}
void InitCommandMode() {
}
void InitInsertMode();
void InitNormalMode();
void InitNomiMode();
void CommandMode(struct CommandMode cmdm) {
tart_draw_cstring_position(tart_get_buffer(&window, 0),
commandInput_cstr,
(struct tart_vec2){16,10});
tart_draw_cstring_position(tart_get_buffer(&window, 0),
commandPrompt_cstr,
(struct tart_vec2){0,10});
}
void InsertMode();
void NormalMode();
void NomiMode();
void Update();
void UpdateBigin();
void UpdateEnd();
void OnQuit();
void OnStart();
void Draw();
#endif /* ifndef EDITOR_H */