#include <screen.h>
Data Fields | |
void * | object |
reference to platform dependent VTScreenView object | |
void(* | draw_text )(struct _VTScreenView *view, int col, int row, char *mbstring, int length, int width) |
draw text in screen | |
void(* | update_cursor_position )(struct _VTScreenView *view, int col, int row) |
set cursor position | |
void(* | set_rendition )(struct _VTScreenView *view, int bold, int blink, int inverse, int underline, int foreground, int background, char charset) |
set graphic rendition of text | |
void(* | clear_rect )(struct _VTScreenView *view, int s_col, int s_row, int e_col, int e_row) |
clear specified rectangular | |
void(* | swap_video )(struct _VTScreenView *view) |
swap foreground and background color permanently | |
void(* | ring )(struct _VTScreenView *view) |
ring the bell | |
void(* | resize_request )(struct _VTScreenView *view, int cols, int rows) |
request new size of the screen | |
void(* | notify_osc )(struct _VTScreenView *view, int type, char *params, int n_params) |
notify OSC(operating system command) | |
void(* | update_scrollbar )(struct _VTScreenView *view, int max, int top, int shown) |
notify scrollbar event | |
void(* | scroll_view )(struct _VTScreenView *view, int dest_row, int src_row, int num_line) |
notify scrollbar event |
View of VTScreen. User must create instance that implements these methods. To short, this is a set of callback functions which are called by VTCore
|
clear specified rectangular
|
|
draw text in screen
|
|
notify OSC(operating system command)
0 - change icon & window title 1 - change icon title 2 - change window titile 46 - change log file 50 - change font |
|
request new size of the screen
|
|
ring the bell
|
|
notify scrollbar event
|
|
set graphic rendition of text
|
|
swap foreground and background color permanently
|
|
set cursor position
|
|
notify scrollbar event
|