working on ssh fork
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user