summaryrefslogtreecommitdiff
path: root/libcons/vcons-open.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-09 22:04:25 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-09 22:04:25 +0000
commit80a243f5e1ce1a023cb45c6ecfa9ccc2b83312d7 (patch)
tree21f975420d18143021535ac9af55184c15fa5377 /libcons/vcons-open.c
parent18cfa8b70ce9a6a3572908115f98211f3fa9a367 (diff)
libcons/
2002-09-09 Marcus Brinkmann <marcus@gnu.org> * Makefile (SRCS): Add vcons-scrollback.c. * vcons-scrollback.c: New file. * cons.h (struct vcons): Add SCROLLING member. * file-changed.c: Include <assert.h>. (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 <marcus@gnu.org> * console-ncurses.c (console_switch): Keep a reference to the port instead refering to it by number.
Diffstat (limited to 'libcons/vcons-open.c')
-rw-r--r--libcons/vcons-open.c4
1 files changed, 4 insertions, 0 deletions
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,