added a temperary buffer when running

This commit is contained in:
2025-10-30 18:05:35 -07:00
parent 0abe4974df
commit 3d755bd9a7
4 changed files with 40 additions and 0 deletions

View File

@@ -28,9 +28,14 @@ struct tart_window tart_create_window() {
window.data[g] = '\0';
}
window.data_count = dataSize;
printf("\033[?1049h");
return window;
}
void tart_destroy_window(struct tart_window* winodw) {
printf("\033[?1049l");
}
tart_byte tart_restore_window(struct tart_window* window) {
for (int i = 0; i < window->data_count; i++) {
window->data[i] = '\0';