From cc60ad8bb9596cafe94f48de9ea030ce01e22404 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 13 Sep 2002 23:40:10 +0000 Subject: 2002-09-14 Marcus Brinkmann * Makefile (SRCS): Add vcons-input.c. * vcons-input.c: New file. * vcons-scrollback.c (_cons_vcons_scrollback): New function. (cons_vcons_scrollback): Reimplement in terms of _cons_vcons_scrollback. * cons.h (cons_scroll_t): New type. (cons_vcons_scrollback): Update prototype. * priv.h (_cons_jump_down_at_input): New extern. (_cons_jump_down_at_output): Likewise. (_cons_vcons_scrollback): New prototype. * opts-std-startup.c (OPT_JUMP_DOWN_AT_INPUT): New macro. (OPT_JUMP_DOWN_AT_OUTPUT): Likewise. (_cons_jump_down_at_input): New variable. (_cons_jump_down_at_output): Likewise. (startup_options): Add new options --jump-down-at-input and --jump-down-at-output. (parse_startup_opt): Handle these new options. * file-changed.c (cons_S_file_changed): Support the jump down at output option. --- libcons/priv.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libcons/priv.h') diff --git a/libcons/priv.h b/libcons/priv.h index c99a1600..9f3fd7b6 100644 --- a/libcons/priv.h +++ b/libcons/priv.h @@ -25,9 +25,20 @@ server. */ extern int _cons_slack; +/* If we jump down at input. */ +extern int _cons_jump_down_at_input; + +/* If we jump down at output. */ +extern int _cons_jump_down_at_output; + /* The filename of the console server. */ extern char *_cons_file; + +/* Non-locking version of cons_vcons_scrollback. Does also not update + the display. */ +int _cons_vcons_scrollback (vcons_t vcons, cons_scroll_t type, float value); + /* Called by MiG to translate ports into cons_notify_t. mutations.h arranges for this to happen for the fs_notify interfaces. */ -- cgit v1.2.3