Deleted Added
full compact
vt.h (273036) vt.h (274868)
1/*-
2 * Copyright (c) 2009, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Portions of this software were developed by Oleksandr Rybalko

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*-
2 * Copyright (c) 2009, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Ed Schouten under sponsorship from the
6 * FreeBSD Foundation.
7 *
8 * Portions of this software were developed by Oleksandr Rybalko

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: stable/10/sys/dev/vt/vt.h 273036 2014-10-13 13:50:51Z dumbbell $
32 * $FreeBSD: stable/10/sys/dev/vt/vt.h 274868 2014-11-22 17:47:03Z dumbbell $
33 */
34
35#ifndef _DEV_VT_VT_H_
36#define _DEV_VT_VT_H_
37
38#include <sys/param.h>
39#include <sys/_lock.h>
40#include <sys/_mutex.h>

--- 137 unchanged lines hidden (view full) ---

178 term_pos_t vb_scr_size; /* (b) Screen dimensions. */
179 int vb_flags; /* (b) Flags. */
180#define VBF_CURSOR 0x1 /* Cursor visible. */
181#define VBF_STATIC 0x2 /* Buffer is statically allocated. */
182#define VBF_MTX_INIT 0x4 /* Mutex initialized. */
183#define VBF_SCROLL 0x8 /* scroll locked mode. */
184#define VBF_HISTORY_FULL 0x10 /* All rows filled. */
185 unsigned int vb_history_size;
33 */
34
35#ifndef _DEV_VT_VT_H_
36#define _DEV_VT_VT_H_
37
38#include <sys/param.h>
39#include <sys/_lock.h>
40#include <sys/_mutex.h>

--- 137 unchanged lines hidden (view full) ---

178 term_pos_t vb_scr_size; /* (b) Screen dimensions. */
179 int vb_flags; /* (b) Flags. */
180#define VBF_CURSOR 0x1 /* Cursor visible. */
181#define VBF_STATIC 0x2 /* Buffer is statically allocated. */
182#define VBF_MTX_INIT 0x4 /* Mutex initialized. */
183#define VBF_SCROLL 0x8 /* scroll locked mode. */
184#define VBF_HISTORY_FULL 0x10 /* All rows filled. */
185 unsigned int vb_history_size;
186#define VBF_DEFAULT_HISTORY_SIZE 500
187 int vb_roffset; /* (b) History rows offset. */
188 int vb_curroffset; /* (b) Saved rows offset. */
189 term_pos_t vb_cursor; /* (u) Cursor position. */
190 term_pos_t vb_mark_start; /* (b) Copy region start. */
191 term_pos_t vb_mark_end; /* (b) Copy region end. */
192 int vb_mark_last; /* Last mouse event. */
193 term_rect_t vb_dirtyrect; /* (b) Dirty rectangle. */
194 term_char_t *vb_buffer; /* (u) Data buffer. */
195 term_char_t **vb_rows; /* (u) Array of rows */
196};
197
186 int vb_roffset; /* (b) History rows offset. */
187 int vb_curroffset; /* (b) Saved rows offset. */
188 term_pos_t vb_cursor; /* (u) Cursor position. */
189 term_pos_t vb_mark_start; /* (b) Copy region start. */
190 term_pos_t vb_mark_end; /* (b) Copy region end. */
191 int vb_mark_last; /* Last mouse event. */
192 term_rect_t vb_dirtyrect; /* (b) Dirty rectangle. */
193 term_char_t *vb_buffer; /* (u) Data buffer. */
194 term_char_t **vb_rows; /* (u) Array of rows */
195};
196
197#ifdef SC_HISTORY_SIZE
198#define VBF_DEFAULT_HISTORY_SIZE SC_HISTORY_SIZE
199#else
200#define VBF_DEFAULT_HISTORY_SIZE 500
201#endif
202
198void vtbuf_copy(struct vt_buf *, const term_rect_t *, const term_pos_t *);
199void vtbuf_fill_locked(struct vt_buf *, const term_rect_t *, term_char_t);
200void vtbuf_init_early(struct vt_buf *);
201void vtbuf_init(struct vt_buf *, const term_pos_t *);
202void vtbuf_grow(struct vt_buf *, const term_pos_t *, unsigned int);
203void vtbuf_putchar(struct vt_buf *, const term_pos_t *, term_char_t);
204void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *);
205void vtbuf_scroll_mode(struct vt_buf *vb, int yes);

--- 213 unchanged lines hidden ---
203void vtbuf_copy(struct vt_buf *, const term_rect_t *, const term_pos_t *);
204void vtbuf_fill_locked(struct vt_buf *, const term_rect_t *, term_char_t);
205void vtbuf_init_early(struct vt_buf *);
206void vtbuf_init(struct vt_buf *, const term_pos_t *);
207void vtbuf_grow(struct vt_buf *, const term_pos_t *, unsigned int);
208void vtbuf_putchar(struct vt_buf *, const term_pos_t *, term_char_t);
209void vtbuf_cursor_position(struct vt_buf *, const term_pos_t *);
210void vtbuf_scroll_mode(struct vt_buf *vb, int yes);

--- 213 unchanged lines hidden ---