From 80a243f5e1ce1a023cb45c6ecfa9ccc2b83312d7 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 9 Sep 2002 22:04:25 +0000 Subject: libcons/ 2002-09-09 Marcus Brinkmann * Makefile (SRCS): Add vcons-scrollback.c. * vcons-scrollback.c: New file. * cons.h (struct vcons): Add SCROLLING member. * file-changed.c: Include . (cons_S_file_changed): Be careful to take VCONS->scrolling into account when doing clipping and scrolling. * cons-switch.c: Roll back to earlier version with vcons -> vcons_entry adjustments. The user is now expected to hold a reference to the VCONS. * cons.h: Fix prototype, too. * vcons-open.c (cons_vcons_open): Initialize VCONS->lock, VCONS->input and VCONS->display. utils/ 2002-09-09 Marcus Brinkmann * console-ncurses.c (console_switch): Keep a reference to the port instead refering to it by number. --- libcons/vcons-open.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcons/vcons-open.c') diff --git a/libcons/vcons-open.c b/libcons/vcons-open.c index 0d826b63..8841b938 100644 --- a/libcons/vcons-open.c +++ b/libcons/vcons-open.c @@ -55,6 +55,10 @@ cons_vcons_open (cons_t cons, vcons_list_t vcons_entry, vcons_t *r_vcons) vcons->cons = cons; vcons->vcons_entry = vcons_entry; vcons->id = vcons_entry->id; + mutex_init (&vcons->lock); + vcons->input = -1; + vcons->display = MAP_FAILED; + vcons->scrolling = 0; /* Open the directory port of the virtual console. */ vconsp = file_name_lookup_under (cons->dirport, name, -- cgit v1.2.3