Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/vt.h
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
#define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz) | #define VD_PASTEBUFSZ(vd) ((vd)->vd_pastebuf.vpb_bufsz) | ||||
#define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len) | #define VD_PASTEBUFLEN(vd) ((vd)->vd_pastebuf.vpb_len) | ||||
#define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock) | #define VT_LOCK(vd) mtx_lock(&(vd)->vd_lock) | ||||
#define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) | #define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) | ||||
#define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) | #define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) | ||||
void vt_resume(struct vt_device *vd); | void vt_resume(struct vt_device *vd); | ||||
void vt_resume_flush_timer(struct vt_device *vd, int ms); | void vt_resume_flush_timer(struct vt_window *vw, int ms); | ||||
void vt_suspend(struct vt_device *vd); | void vt_suspend(struct vt_device *vd); | ||||
/* | /* | ||||
* Per-window terminal screen buffer. | * Per-window terminal screen buffer. | ||||
* | * | ||||
* Because redrawing is performed asynchronously, the buffer keeps track | * Because redrawing is performed asynchronously, the buffer keeps track | ||||
* of a rectangle that needs to be redrawn (vb_dirtyrect). Because this | * of a rectangle that needs to be redrawn (vb_dirtyrect). Because this | ||||
* approach seemed to cause suboptimal performance (when the top left | * approach seemed to cause suboptimal performance (when the top left | ||||
Show All 24 Lines | |||||
}; | }; | ||||
#ifdef SC_HISTORY_SIZE | #ifdef SC_HISTORY_SIZE | ||||
#define VBF_DEFAULT_HISTORY_SIZE SC_HISTORY_SIZE | #define VBF_DEFAULT_HISTORY_SIZE SC_HISTORY_SIZE | ||||
#else | #else | ||||
#define VBF_DEFAULT_HISTORY_SIZE 500 | #define VBF_DEFAULT_HISTORY_SIZE 500 | ||||
#endif | #endif | ||||
void vtbuf_lock(struct vt_buf *); | |||||
void vtbuf_unlock(struct vt_buf *); | |||||
void vtbuf_copy(struct vt_buf *, const term_rect_t *, const term_pos_t *); | void vtbuf_copy(struct vt_buf *, const term_rect_t *, const term_pos_t *); | ||||
void vtbuf_fill_locked(struct vt_buf *, const term_rect_t *, term_char_t); | void vtbuf_fill(struct vt_buf *, const term_rect_t *, term_char_t); | ||||
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 *); | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |