Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libmenu Added a NOTES section to describe the difference...
details: https://anonhg.NetBSD.org/src/rev/b9a980ad1cb3
branches: trunk
changeset: 533072:b9a980ad1cb3
user: blymn <blymn%NetBSD.org@localhost>
date: Thu Jun 20 12:18:48 2002 +0000
description:
Added a NOTES section to describe the differences between our menus
library and the original AT&T one.
diffstat:
lib/libmenu/menus.3 | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 58917a7fd4fb -r b9a980ad1cb3 lib/libmenu/menus.3
--- a/lib/libmenu/menus.3 Thu Jun 20 12:14:08 2002 +0000
+++ b/lib/libmenu/menus.3 Thu Jun 20 12:18:48 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: menus.3,v 1.8 2002/02/20 17:49:14 wiz Exp $
+.\" $NetBSD: menus.3,v 1.9 2002/06/20 12:18:48 blymn Exp $
.\"
.\" Copyright (c) 1999
.\" Brett Lymn - blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost
@@ -257,3 +257,27 @@
.Xr menu_post 3 ,
.Xr menu_userptr 3 ,
.Xr menu_win 3
+.Sh NOTES
+This implementation of the menus library does depart in behaviour
+subtly from the original AT \*[Am] T implementation. Some of the more
+notable departures are:
+.Pp
+.Bl -tag -width "item marking" -compact
+.It unmark
+The original implementation did not have a marker for an unmarked field
+the mark was only displayed next to a field when it had been marked using
+the REQ_TOGGLE_ITEM. In this implementation a separate marker can be used
+to indicate an unmarked item. This can be set using set_menu_unmark function.
+There is no requirement for the mark and unmark strings to be the same
+length. Room will be left for the longest of the two. The unmark string
+is optional, if it is not set then menus defaults to the old behaviour.
+.It item marking
+In the original implementation the current item was considered selected
+and hence had the mark string displayed next to it. This implementation
+does not do this because the Author considers the effect too confusing.
+Especially in the case of a multiple selection menu because there was no
+way to tell if the current item is selected or not without shifting off
+of it. Since the current item is displayed using the foreground
+attribute it was deemed unnecessary to also display the mark string against
+the current item.
+.El
Home |
Main Index |
Thread Index |
Old Index