diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-11 08:02:09 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-11 08:02:09 +0000 |
| commit | bcb0ff98875adab04615a40cc38319daf33b5a8b (patch) | |
| tree | 2573abdf1fcae2b4f867cdfc6fae930d564a4114 /usr.sbin | |
| parent | 3ee8cec8545ee16d241b11023e0ff74015b8c6f1 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/sade/termcap.c | 5 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/help/usage.hlp | 29 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/termcap.c | 5 |
3 files changed, 22 insertions, 17 deletions
diff --git a/usr.sbin/sade/termcap.c b/usr.sbin/sade/termcap.c index a6b643b108ae..834ea0f5b954 100644 --- a/usr.sbin/sade/termcap.c +++ b/usr.sbin/sade/termcap.c @@ -33,8 +33,11 @@ set_termcap(void) term = getenv("TERM"); stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); - if (getpid() != 1) + if (getpid() != 1) { DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); + if (DebugFD < 0) + DebugFD = open("/dev/null", O_RDWR, 0); + } if (stat < 0) { if (!term) { diff --git a/usr.sbin/sysinstall/help/usage.hlp b/usr.sbin/sysinstall/help/usage.hlp index 5537d147b95b..64b7c3463647 100644 --- a/usr.sbin/sysinstall/help/usage.hlp +++ b/usr.sbin/sysinstall/help/usage.hlp @@ -2,20 +2,21 @@ HOW TO USE THIS SYSTEM ====================== The following keys are recognised in most of the dialogs you'll -encounter during this installation: +encounter during this installation [press the PageDown key to go +to the next screen when you finish reading this one]: KEY ACTION --- ------ SPACE Select or toggle the current item. -RETURN Continue or invoke selected menu button. -UP ARROW Move to previous item (or up, in a text field). -DOWN ARROW Move to next item (or down, in a text field). +RETURN Finish with an item. +UP ARROW Move to previous item (or up, in a text display box). +DOWN ARROW Move to next item (or down, in a text display box). TAB Move to next item or group. RIGHT ARROW Move to next item or group (same as TAB). SHIFT-TAB Move to previous item or group. LEFT ARROW Move to previous item or group (same as SHIFT-TAB). -PAGE UP In text boxes, scrolls up one page. -PAGE DOWN In text boxes, scrolls down one page. +PAGE UP In text display boxes, scrolls up one page. +PAGE DOWN In text display boxes, scrolls down one page. If you see small "^(-)" or "v(+)" symbols at the edges of a menu, it means that there are more items above or below the current one that @@ -23,9 +24,9 @@ aren't being shown (due to insufficient screen space). Using the up/down arrow keys will cause the menu to scroll. The PageUp and PageDown keys will scroll by entire screens. -In text fields, the amount of text above the current point will be +In text display boxes, the amount of text above the current point will be displayed as a percentage in the lower right corner. A value of -100% means that you're at the bottom of the available text. +100% means that you're at the bottom of the displayed text. Selecting OK in a menu will confirm whatever action it's controlling. Selecting Cancel will cancel the operation and generally return you to @@ -36,11 +37,8 @@ SPECIAL FEATURES: ================= It is also possible to select a menu item by typing the first -character of its name, if unique. Such "accelerator" characters will -be specially highlighted in the item name. Unfortunately, the -accellerators aren't always unique (a shortcoming of the dialog menu -library) so you'll only be able to get at the *first* unique menu -entry for a given accellerator. +character of its name, if unique. This will generally be an +item number. The console driver also contains a scroll-back buffer for reviewing things that may have scrolled off the screen. To use scroll-back, @@ -57,5 +55,6 @@ also find that you have multiple "virtual consoles" and can use them to have several active sessions at once. Use ALT-F<n> to switch between them, where `F<n>' is the function key corresponding to the screen you wish to see. By default, the system comes with 3 virtual -consoles enabled. You can create more by editing the /etc/ttys file -(up to a maximum of 12). +consoles enabled. You can enable more by editing the /etc/ttys file +and turning the "off" field to "on" in the relevant vty entries (up to +12). diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index a6b643b108ae..834ea0f5b954 100644 --- a/usr.sbin/sysinstall/termcap.c +++ b/usr.sbin/sysinstall/termcap.c @@ -33,8 +33,11 @@ set_termcap(void) term = getenv("TERM"); stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay); - if (getpid() != 1) + if (getpid() != 1) { DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644); + if (DebugFD < 0) + DebugFD = open("/dev/null", O_RDWR, 0); + } if (stat < 0) { if (!term) { |
