Files
Tart/source/term.h

38 lines
1.2 KiB
C
Raw Normal View History

2025-01-29 10:51:20 -08:00
// #========================================================================#
// | PREACHERDHM:TERM |
// | |
// | term renders all of the data from TART. Term takes a tart_window and |
// | renders all of the buffers and cells inside the that window object. |
// | There is a draw function and a draw buffer function. |
// | |
// | Term is just a way to output the data from tart. |
// #========================================================================#
2025-01-28 21:01:24 -08:00
#ifndef TERM_H
#define TERM_H
2025-10-30 18:05:35 -07:00
#define NOREAD 0
2025-01-28 21:01:24 -08:00
#include "tart.h"
2025-01-29 10:51:20 -08:00
struct tart_vec2 term_current_size();
2025-01-28 21:01:24 -08:00
2025-01-30 03:31:12 +00:00
char term_getch();
char term_getche();
2025-01-31 19:47:49 +00:00
// tinput is threaded input
int term_threaded_input_init();
int term_threaded_input_stop();
char term_tinputi(int idx);
char* term_tinputb();
char term_tinput();
2025-10-30 18:05:35 -07:00
unsigned char term_key_pressed();
void term_handled_key();
void term_end_of_key();
void term_start_read();
2025-01-31 19:47:49 +00:00
void term_disable_cursor();
void term_enable_cursor();
2025-01-28 21:01:24 -08:00
#endif