Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/vt/vt.h
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | struct vt_buf { | ||||
term_pos_t vb_scr_size; /* (b) Screen dimensions. */ | term_pos_t vb_scr_size; /* (b) Screen dimensions. */ | ||||
int vb_flags; /* (b) Flags. */ | int vb_flags; /* (b) Flags. */ | ||||
#define VBF_CURSOR 0x1 /* Cursor visible. */ | #define VBF_CURSOR 0x1 /* Cursor visible. */ | ||||
#define VBF_STATIC 0x2 /* Buffer is statically allocated. */ | #define VBF_STATIC 0x2 /* Buffer is statically allocated. */ | ||||
#define VBF_MTX_INIT 0x4 /* Mutex initialized. */ | #define VBF_MTX_INIT 0x4 /* Mutex initialized. */ | ||||
#define VBF_SCROLL 0x8 /* scroll locked mode. */ | #define VBF_SCROLL 0x8 /* scroll locked mode. */ | ||||
#define VBF_HISTORY_FULL 0x10 /* All rows filled. */ | #define VBF_HISTORY_FULL 0x10 /* All rows filled. */ | ||||
unsigned int vb_history_size; | unsigned int vb_history_size; | ||||
int vb_roffset; /* (b) History rows offset. */ | unsigned int vb_roffset; /* (b) History rows offset. */ | ||||
int vb_curroffset; /* (b) Saved rows offset. */ | unsigned int vb_curroffset; /* (b) Saved rows offset. */ | ||||
term_pos_t vb_cursor; /* (u) Cursor position. */ | term_pos_t vb_cursor; /* (u) Cursor position. */ | ||||
term_pos_t vb_mark_start; /* (b) Copy region start. */ | term_pos_t vb_mark_start; /* (b) Copy region start. */ | ||||
term_pos_t vb_mark_end; /* (b) Copy region end. */ | term_pos_t vb_mark_end; /* (b) Copy region end. */ | ||||
int vb_mark_last; /* Last mouse event. */ | int vb_mark_last; /* Last mouse event. */ | ||||
term_rect_t vb_dirtyrect; /* (b) Dirty rectangle. */ | term_rect_t vb_dirtyrect; /* (b) Dirty rectangle. */ | ||||
term_char_t *vb_buffer; /* (u) Data buffer. */ | term_char_t *vb_buffer; /* (u) Data buffer. */ | ||||
term_char_t **vb_rows; /* (u) Array of rows */ | term_char_t **vb_rows; /* (u) Array of rows */ | ||||
}; | }; | ||||
Show All 9 Lines | |||||
void vtbuf_init_early(struct vt_buf *); | void vtbuf_init_early(struct vt_buf *); | ||||
void vtbuf_init(struct vt_buf *, const term_pos_t *); | void vtbuf_init(struct vt_buf *, const term_pos_t *); | ||||
void vtbuf_grow(struct vt_buf *, const term_pos_t *, unsigned int); | void vtbuf_grow(struct vt_buf *, const term_pos_t *, unsigned int); | ||||
void vtbuf_putchar(struct vt_buf *, const term_pos_t *, term_char_t); | void vtbuf_putchar(struct vt_buf *, const term_pos_t *, term_char_t); | ||||
void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *); | void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *); | ||||
void vtbuf_scroll_mode(struct vt_buf *vb, int yes); | void vtbuf_scroll_mode(struct vt_buf *vb, int yes); | ||||
void vtbuf_dirty(struct vt_buf *vb, const term_rect_t *area); | void vtbuf_dirty(struct vt_buf *vb, const term_rect_t *area); | ||||
void vtbuf_undirty(struct vt_buf *, term_rect_t *); | void vtbuf_undirty(struct vt_buf *, term_rect_t *); | ||||
void vtbuf_sethistory_size(struct vt_buf *, int); | void vtbuf_sethistory_size(struct vt_buf *, unsigned int); | ||||
int vtbuf_iscursor(const struct vt_buf *vb, int row, int col); | int vtbuf_iscursor(const struct vt_buf *vb, int row, int col); | ||||
void vtbuf_cursor_visibility(struct vt_buf *, int); | void vtbuf_cursor_visibility(struct vt_buf *, int); | ||||
#ifndef SC_NO_CUTPASTE | #ifndef SC_NO_CUTPASTE | ||||
int vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row); | int vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row); | ||||
int vtbuf_get_marked_len(struct vt_buf *vb); | int vtbuf_get_marked_len(struct vt_buf *vb); | ||||
void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz); | void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |