working on ssh fork

This commit is contained in:
2026-04-15 06:58:59 -07:00
parent 5e8a6685dc
commit aff47d79bd
4 changed files with 64 additions and 20 deletions

View File

@@ -14,6 +14,7 @@ typedef unsigned int TART_FLAGS;
typedef unsigned char tart_byte;
typedef unsigned short tart_id;
#include <libssh/libssh.h>
#ifdef TART_UTF8
#include <wchar.h>
@@ -90,6 +91,8 @@ typedef struct {
tart_vec2 terminalSize;
tart_buffer buffer;
const char* name;
ssh_channel ch;
}tart_window ;
@@ -189,12 +192,14 @@ typedef struct {
#define t_strncpy wcncpy
#endif
int tart_create_window(tart_window* w, tart_vec2 ws, const char* title);
int tart_create_window(tart_window* w, tart_vec2 ws, const char* title, ssh_channel ch);
int tart_init(tart_window* w);
int tart_close(tart_window* w);
void tart_disable_cusor();
void tart_enable_cusor();
tart_vec2 tart_window_resize(tart_window* w, tart_vec2 size);
void tart_disable_cusor(tart_window* w);
void tart_enable_cusor(tart_window* w);
int tart_draw(tart_window* w);
int tart_draw_to_buffer(tart_window* w);
int tart_jump(tart_window* w, tart_vec2 pos);
int tart_move_cursor(tart_window* w, tart_vec2 pos);