From 6f506fcf96fb49387a4ae7cd1e2e8be01e5a6bc4 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sat, 8 Oct 2005 11:41:18 +0000 Subject: [PATCH] - modified syntax of the user shortcut string. The key names are now separated with a '-' character. Added support for some more keys. The old-style syntax is still supported for a few key combinations. - updated/added documentation for the 'cmosimage' option --- bochs/.bochsrc | 26 ++++-- bochs/doc/docbook/user/user.dbk | 17 ++-- bochs/doc/man/bochsrc.5 | 18 ++-- bochs/gui/gui.cc | 143 +++++++++++++++++++++++--------- 4 files changed, 145 insertions(+), 59 deletions(-) diff --git a/bochs/.bochsrc b/bochs/.bochsrc index b8a401827..b1137d3d7 100644 --- a/bochs/.bochsrc +++ b/bochs/.bochsrc @@ -638,14 +638,17 @@ keyboard_mapping: enabled=0, map= #======================================================================= # USER_SHORTCUT: # This defines the keyboard shortcut to be sent when you press the "user" -# button in the headerbar. The shortcut string can be a combination of -# these key names: "alt", "bksp", "ctrl", "del", "esc", "f1", "f4", "tab" -# and "win". Up to 3 keys can be pressed at a time. +# button in the headerbar. The shortcut string is a combination of maximum +# 3 key names (listed below) separated with a '-' character. The old-style +# syntax (without the '-') is still supported for a few key combinations. +# Valid key names: "f1", ... "f12", "alt", "bksp", "ctrl", "del", "down", +# "enter", "esc", "left", "menu", "minus", "plus", "right", "space", "tab", +# "up", and "win". # # Example: -# user_shortcut: keys=ctrlaltdel +# user_shortcut: keys=ctrl-alt-del #======================================================================= -#user_shortcut: keys=ctrlaltdel +#user_shortcut: keys=ctrl-alt-del #======================================================================= # I440FXSUPPORT: @@ -673,11 +676,22 @@ keyboard_mapping: enabled=0, map= #======================================================================= #usb1: enabled=1 +#======================================================================= +# CMOSIMAGE: +# This defines image file that can be loaded into the CMOS RAM at startup. +# The rtc_init parameter controls whether initialize the RTC with values stored +# in the image. By default the time0 argument given to the clock option is used. +# With 'rtc_init=image' the image is the source for the initial time. +# +# Example: +# cmosimage: file=cmos.img, rtc_init=image +#======================================================================= +#cmosimage: file=cmos.img, rtc_init=time0 + #======================================================================= # other stuff #======================================================================= #magic_break: enabled=1 -#cmosimage: file=cmos.img, rtc_init=time0 #load32bitOSImage: os=nullkernel, path=../kernel.img, iolog=../vga_io.log #load32bitOSImage: os=linux, path=../linux.img, iolog=../vga_io.log, initrd=../initrd.img #text_snapshot_check: enable diff --git a/bochs/doc/docbook/user/user.dbk b/bochs/doc/docbook/user/user.dbk index 347092f7a..71d920c91 100644 --- a/bochs/doc/docbook/user/user.dbk +++ b/bochs/doc/docbook/user/user.dbk @@ -1,7 +1,7 @@