summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt
diff options
context:
space:
mode:
authordumbbell <dumbbell@FreeBSD.org>2014-11-04 23:51:35 +0000
committerdumbbell <dumbbell@FreeBSD.org>2014-11-04 23:51:35 +0000
commit744533d61e6ca69ceee84197d1b0af882ad6b2ad (patch)
tree8b600ccd31295db44c8a142c59bf9ca4cebfc2bf /sys/dev/vt
parentbf764fc98274724d74ce3fe2184574f26b6ec47b (diff)
downloadFreeBSD-src-744533d61e6ca69ceee84197d1b0af882ad6b2ad.zip
FreeBSD-src-744533d61e6ca69ceee84197d1b0af882ad6b2ad.tar.gz
vt(4): Support syscons' SC_HISTORY_SIZE to configure history size
Therefore, to set histry size to 2000 lines, add the following line to your kernel configuration file: options SC_HISTORY_SIZE=2000 The default history remains at 500 lines. MFC after: 1 week
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/vt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h
index 578f1a8..262ffaf 100644
--- a/sys/dev/vt/vt.h
+++ b/sys/dev/vt/vt.h
@@ -182,7 +182,6 @@ struct vt_buf {
#define VBF_SCROLL 0x8 /* scroll locked mode. */
#define VBF_HISTORY_FULL 0x10 /* All rows filled. */
unsigned int vb_history_size;
-#define VBF_DEFAULT_HISTORY_SIZE 500
int vb_roffset; /* (b) History rows offset. */
int vb_curroffset; /* (b) Saved rows offset. */
term_pos_t vb_cursor; /* (u) Cursor position. */
@@ -194,6 +193,12 @@ struct vt_buf {
term_char_t **vb_rows; /* (u) Array of rows */
};
+#ifdef SC_HISTORY_SIZE
+#define VBF_DEFAULT_HISTORY_SIZE SC_HISTORY_SIZE
+#else
+#define VBF_DEFAULT_HISTORY_SIZE 500
+#endif
+
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_init_early(struct vt_buf *);
OpenPOWER on IntegriCloud