Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 17:47:03 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r274868 - stable/10/sys/dev/vt
Message-ID:  <201411221747.sAMHl3Al096400@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sat Nov 22 17:47:03 2014
New Revision: 274868
URL: https://svnweb.freebsd.org/changeset/base/274868

Log:
  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 of:		r274117

Modified:
  stable/10/sys/dev/vt/vt.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/vt.h
==============================================================================
--- stable/10/sys/dev/vt/vt.h	Sat Nov 22 17:46:30 2014	(r274867)
+++ stable/10/sys/dev/vt/vt.h	Sat Nov 22 17:47:03 2014	(r274868)
@@ -183,7 +183,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. */
@@ -195,6 +194,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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411221747.sAMHl3Al096400>