Lines Matching defs:vb
241 void vtbuf_scroll_mode(struct vt_buf *vb, int yes);
242 void vtbuf_dirty(struct vt_buf *vb, const term_rect_t *area);
246 int vtbuf_iscursor(const struct vt_buf *vb, int row, int col);
249 int vtbuf_set_mark(struct vt_buf *vb, int type, int col, int row);
250 int vtbuf_get_marked_len(struct vt_buf *vb);
251 void vtbuf_extract_marked(struct vt_buf *vb, term_char_t *buf, int sz, int mark);
262 #define VTBUF_SLCK_ENABLE(vb) vtbuf_scroll_mode((vb), 1)
263 #define VTBUF_SLCK_DISABLE(vb) vtbuf_scroll_mode((vb), 0)
265 #define VTBUF_MAX_HEIGHT(vb) \
266 ((vb)->vb_history_size)
267 #define VTBUF_GET_ROW(vb, r) \
268 ((vb)->vb_rows[((vb)->vb_roffset + (r)) % VTBUF_MAX_HEIGHT(vb)])
269 #define VTBUF_GET_FIELD(vb, r, c) \
270 ((vb)->vb_rows[((vb)->vb_roffset + (r)) % VTBUF_MAX_HEIGHT(vb)][(c)])
271 #define VTBUF_FIELD(vb, r, c) \
272 ((vb)->vb_rows[((vb)->vb_curroffset + (r)) % VTBUF_MAX_HEIGHT(vb)][(c)])
273 #define VTBUF_ISCURSOR(vb, r, c) \
274 vtbuf_iscursor((vb), (r), (c))
285 void vthistory_addlines(struct vt_buf *vb, int offset);