added nomi spirel
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <termios.h>
|
||||
|
||||
#include "commands.h"
|
||||
#include "nomi.h"
|
||||
|
||||
#define KEY_BACKSPACE 127
|
||||
#define COMMAND_MODE 0x01
|
||||
@@ -127,7 +128,7 @@ int main (int argc, char *argv[]) {
|
||||
// Window Createion
|
||||
struct tart_window window = tart_create_window();
|
||||
struct tart_buffer buf = tart_create_buffer(0,
|
||||
(struct tart_vec2){40,20},
|
||||
term_current_size(),
|
||||
(struct tart_vec2){0,0});
|
||||
tart_add_buffer(&window, buf);
|
||||
|
||||
@@ -257,6 +258,10 @@ int main (int argc, char *argv[]) {
|
||||
keyPressed = 0;
|
||||
}
|
||||
drawTextBox(&window, &inputRtb, 0);
|
||||
|
||||
|
||||
DrawBranch(NULL, &window, 0);
|
||||
|
||||
tart_draw_window(&window, 0);
|
||||
if(mode == COMMAND_MODE) {
|
||||
tart_draw_cstring_position(tart_get_buffer(&window, 0),
|
||||
|
||||
Reference in New Issue
Block a user