#include <stdio.h>
#include <wchar.h>
#include "io.h"
#include "screen.h"
Go to the source code of this file.
Data Structures | |
struct | _VTCore |
Typedefs | |
typedef _VTCore | VTCore |
typedefed struct of struct _VTCore | |
Enumerations | |
enum | { VTM_SHIFT = 0x0004, VTM_META = 0x0008, VTM_CONTROL = 0x0010, VTK_LEFT = 0xFF51, VTK_UP = 0xFF52, VTK_RIGHT = 0xFF53, VTK_DOWN = 0xFF54, VTK_CR = 0xFF0D, VTK_KP_0 = 0xFF00, VTK_KP_1 = 0xFF01, VTK_KP_2 = 0xFF02, VTK_KP_3 = 0xFF03, VTK_KP_4 = 0xFF04, VTK_KP_5 = 0xFF05, VTK_KP_6 = 0xFF06, VTK_KP_7 = 0xFF07, VTK_KP_8 = 0xFF08, VTK_KP_9 = 0xFF09, VTK_KP_DASH = 0xFF0A, VTK_KP_COMMA = 0xFF0B, VTK_KP_PERIOD = 0xFF0C, VTK_KP_ENTER = 0xFF0D, VTK_KP_PF1 = 0xFF0E, VTK_KP_PF2 = 0xFF0F, VTK_KP_PF3 = 0xFF10, VTK_KP_PF4 = 0xFF11, VTK_F1 = 0x1000, VTK_F2 = 0x1001, VTK_F3 = 0x1002, VTK_F4 = 0x1003, VTK_F5 = 0x1004, VTK_F6 = 0x1005, VTK_F7 = 0x1006, VTK_F8 = 0x1007, VTK_F9 = 0x1008, VTK_F10 = 0x1009, VTK_F11 = 0x1010, VTK_F12 = 0x1011, VTK_F13 = 0x1012, VTK_F14 = 0x1013, VTK_F15 = 0x1014, VTK_F16 = 0x1015, VTK_F17 = 0x1016, VTK_F18 = 0x1017 } |
Functions | |
VTCore * | VTCore_new (TerminalIO *io, int num_cols, int num_rows, int num_history) |
Constructor of VTCore object. | |
void | VTCore_destroy (VTCore *core) |
Destructor of VTCore object. | |
int | VTCore_write (struct _VTCore *core, char *mb, int length) |
method to write input data to Host. | |
int | VTCore_send_key (VTCore *core, int type) |
method to send specified key | |
void | VTCore_redraw (VTCore *core, int scol, int srow, int ecol, int erow) |
method to request redraw to screen model. | |
void | VTCore_set_screen_view (VTCore *core, VTScreenView *view) |
method to set ScreenView to ScreenModel | |
void | VTCore_set_screen_size (VTCore *core, int width, int height) |
method to set Screen size | |
void | VTCore_start_selection (VTCore *core, int scol, int srow, int type) |
Start selection. | |
void | VTCore_extend_selection (VTCore *core, int scol, int srow) |
Extend selection. | |
void | VTCore_copy_buffer (VTCore *core, int scol, int srow, int ecol, int erow, char *dest, int dest_size) |
Copy multibyte characters from buffer. | |
void | VTCore_copy_selected_buffer (VTCore *core, char *dest, int dest_size) |
Copy multibyte characters from buffer. | |
void | VTCore_clear_selection (VTCore *core) |
Clear selection. | |
void | VTCore_scroll (VTCore *core, double top) |
Scroll buffer. | |
void | VTCore_set_exit_callback (VTCore *core, void(*proc)(VTScreenView *view)) |
set callback function when host thread finish. | |
void | VTCore_set_reverse_video (VTCore *core, int on) |
set reverse video | |
void | VTCore_scroll_up (VTCore *core, int num_line) |
Scroll buffer. | |
void | VTCore_scroll_down (VTCore *core, int num_line) |
Scroll buffer. | |
int | VTCore_send_mouse_position (VTCore *core, int button, int modifiers, int pressed, int col, int row) |
Send mouse cursor position This should be called when. | |
void | VTCore_dispatch (VTCore *core) |
Dispatch host event; This method doesn't return until host sends bytes. |
|
|
Clear selection.
|
|
Copy multibyte characters from buffer.
|
|
Copy multibyte characters from buffer.
|
|
Destructor of VTCore object.
|
|
Dispatch host event; This method doesn't return until host sends bytes. Caller must detect host event before calling this method.
|
|
Extend selection.
|
|
Constructor of VTCore object.
|
|
method to request redraw to screen model.
|
|
Scroll buffer.
|
|
Scroll buffer.
|
|
Scroll buffer.
|
|
method to send specified key
|
|
Send mouse cursor position This should be called when.
|
|
set callback function when host thread finish.
|
|
set reverse video
|
|
method to set Screen size
|
|
method to set ScreenView to ScreenModel
|
|
Start selection.
|
|
method to write input data to Host.
|