1 |
/* vcons-scrollback.c - Move forward and backward in the scrollback buffer. |
/* vcons-scrollback.c - Move forward and backward in the scrollback buffer. |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
Written by Marcus Brinkmann. |
Written by Marcus Brinkmann. |
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
23 |
#include <cthreads.h> |
#include <cthreads.h> |
24 |
|
|
25 |
#include "cons.h" |
#include "cons.h" |
26 |
|
#include "priv.h" |
27 |
|
|
28 |
/* Non-locking version of cons_vcons_scrollback. Does also not update |
/* Non-locking version of cons_vcons_scrollback. Does also not update |
29 |
the display. */ |
the display. */ |
156 |
|
|
157 |
mutex_lock (&vcons->lock); |
mutex_lock (&vcons->lock); |
158 |
ret = _cons_vcons_scrollback (vcons, type, value); |
ret = _cons_vcons_scrollback (vcons, type, value); |
159 |
|
_cons_vcons_console_event (vcons, CONS_EVT_OUTPUT); |
160 |
cons_vcons_update (vcons); |
cons_vcons_update (vcons); |
161 |
mutex_unlock (&vcons->lock); |
mutex_unlock (&vcons->lock); |
162 |
return ret; |
return ret; |