/* * ssheven * * Copyright (c) 2020 by cy384 * See LICENSE file for details */ #pragma once // open transport #include #include // mac os stuff #include #include #include #include #include #include #include #include #include // libssh2 #include // ssheven constants #include "ssheven-constants.r" // sinful globals struct ssheven_console { WindowPtr win; char data[80][24]; int cursor_x; int cursor_y; int cell_height; int cell_width; int cursor_state; long int last_cursor_blink; }; extern struct ssheven_console con; struct ssheven_ssh_connection { LIBSSH2_CHANNEL* channel; LIBSSH2_SESSION* session; EndpointRef endpoint; char* recv_buffer; char* send_buffer; }; extern struct ssheven_ssh_connection ssh_con;