Commit Graph

107 Commits

Author SHA1 Message Date
Bruce Evans
18b29797da Fixed synopsis. There was a missing arg, 3 args with the wrong type,
and many apparent dependendcies on <sys/types.h> from use of u_char.
<dialog.h> avoids u_char, so avoid it here too.
1997-04-13 12:36:42 +00:00
Jordan K. Hubbard
ab9b932c99 YAMF22 1997-03-29 19:51:48 +00:00
Andrey A. Chernov
5ee71a0d7b Fix various overflows for items longer then menu width.
Fix cursor place after PgUp/PgDn.

Should go into 2.2
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su>
1997-02-28 19:18:47 +00:00
Peter Wemm
fce15c9ab3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
Andrey A. Chernov
113b1c5fe5 When wrong directory choosed and chdir failed, directory name
was not reset to old name causing any file choosen put error
diagnostic about wrong directory, fix it by resetting back
to old name after chdir failed.

Add \r as alias to \n, some telnets have problem with that.

Should go into 2.2
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su> & me
1997-02-18 14:26:24 +00:00
Jordan K. Hubbard
a59ff6e254 Go on one of my periodic rampages through this code, trying to make
it DTRT.  In the process, discover the usual 10-15 evil bogons which
have been lurking in it for years.  This closes, for one thing, the
recent report Mike Smith made about nested checklist menus returning
with the scrolling region messed up.
1997-01-17 08:19:19 +00:00
Jordan K. Hubbard
75c6403334 Allow emacs-style next/prev characters as well as arrow keys so that
I can offer this as a consistent feature.
1997-01-15 02:50:48 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Joerg Wunsch
65fb557e51 Pull the fix from rev 1.31.2.1; i've accidentally committed it to
2.2 first.
1996-12-26 18:47:11 +00:00
Jordan K. Hubbard
fac5450c4f Somewhere along the way, multiple targets started working and nobody
noticed.
1996-12-14 16:40:05 +00:00
Jordan K. Hubbard
ae5b2dcf86 Add another hateful global to libdialog (what the heck, there are already
so many).  For now, the only extended attribute implemented is NO ECHO,
useful for things like passwords.  See TESTS/input2.c for an example.
This should go into 2.2.
1996-12-14 16:14:21 +00:00
Jordan K. Hubbard
fb46ad63d7 Line up some of these OK boxes properly again. 1996-12-12 11:05:59 +00:00
Jordan K. Hubbard
3cd2d3f69a "CONTINUE" was just too long. Make it a nice "OK" now. 1996-10-04 13:06:48 +00:00
Bruce Evans
0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
Jordan K. Hubbard
e36f5f6c56 Make button highlighting more visible on B/W displays. 1996-09-06 09:36:45 +00:00
Jordan K. Hubbard
09059a0b45 Collapse some common arrow key handling semantics from sysinstall into
PollObj(), simplifying code which uses it.
1996-09-01 08:16:00 +00:00
Peter Wemm
345be915f7 cmp -s || install -c ==> install -C 1996-08-30 02:12:07 +00:00
Jordan K. Hubbard
71a074386a Reverse my patch which erroneously removed the library dependencies
for a library.  They're needed.
1996-08-13 12:46:10 +00:00
Jordan K. Hubbard
8a80fd427c Throw some unnecessary dreck out of this Makefile. 1996-08-11 17:21:20 +00:00
Jordan K. Hubbard
15232ab26e 1. Remove some ancient bogons from when I initially added dialogMenuItem
support.
2. Have message boxes say "Continue" instead of "Exit"
1996-07-11 18:22:16 +00:00
Jordan K. Hubbard
1cca289947 Fix a couple of whoopers which somehow went undetected until now. 1996-07-11 11:15:28 +00:00
Jordan K. Hubbard
3bd9961585 Add missing dialog_clear() calls. 1996-07-05 07:42:23 +00:00
Jordan K. Hubbard
73410b698a Round out the examples a little better in showing custom buttons in operation
more than once.
1996-07-02 01:03:56 +00:00
Jordan K. Hubbard
d1efb9fdc2 Fix the OK/Cancel accellerator bogon I introduced a few days back. 1996-04-28 02:13:07 +00:00
Jordan K. Hubbard
1e702eb8a5 Fix what I just broke with DITEM_LEAVE_MENU 1996-04-27 07:09:41 +00:00
Jordan K. Hubbard
396df2aa3a Fix a bogon with ok/cancel callback usage. 1996-04-27 01:52:15 +00:00
Jordan K. Hubbard
7af0a5dbaf More custom hackery to deal with issues discovered in sysinstall. 1996-04-25 17:27:18 +00:00
Jordan K. Hubbard
ab112e9f34 Allow some post-fire actions to be combined in ways that weren't
possible before.
1996-04-25 13:34:37 +00:00
Jordan K. Hubbard
02836a445d alloca() was being called with highly bogus arguments due to brain
fade.  Fixed.
1996-04-25 01:50:18 +00:00
Jordan K. Hubbard
5553e30b48 Cosmetic tweaks. 1996-04-23 01:25:04 +00:00
Jordan K. Hubbard
7b75f15fa7 Another bug fix for the DITEM_REDRAW case. 1996-04-20 01:56:06 +00:00
Jordan K. Hubbard
060882c315 Make the DITEM_RECREATE option work properly. 1996-04-20 01:28:20 +00:00
Jordan K. Hubbard
d83f3d7544 Fix a bug which did not properly bias checklist items by their scroll
factor.
1996-04-19 10:39:16 +00:00
Jordan K. Hubbard
806a609d46 Remove a long-standing window leak I just noticed. 1996-04-18 13:36:39 +00:00
Jordan K. Hubbard
c50c22c798 Remove the special-case behavior for fire actions that return
DITEM_FAILURE - formerly they would simply act as an implicit "continue",
but this is wrong.  If you want this behavior, you should now return
with the DITEM_CONTINUE flag set.

Also make the semantics of DITEM_RESTORE quite a bit different - rather
than restore the screen back to pre-menu state, we restore the menu
itself.  This is more correct for a variety of reasons when dealing with
nested menus (whoops!).
1996-04-18 13:21:26 +00:00
Jordan K. Hubbard
6562be49a5 More changes to attempt to make this whole new dialog scheme more
robust.  The new "fire" actions, while affording signficantly more
interactivity to libdialog, come at a cost - if the fire action trashes
the screen then you're not going to be in Kansas anymore when you
come back to the menu and there had better be considerable extra
smarts in place for coping with such a situation.  These changes are my
attempt to do just that.
1996-04-16 12:17:27 +00:00
Jordan K. Hubbard
056985cc17 Remove some of the grot I added to try and save/restore screen contents.
This shouldn't be done here, it should be done in the client as needed.
1996-04-13 13:13:32 +00:00
Jordan K. Hubbard
de16e2a457 Save screen before calling any fire() callbacks - you never know what
they might do to the screen.
1996-04-08 10:28:07 +00:00
Jordan K. Hubbard
3d681421e0 Refresh dialogs if a callback action fails. 1996-04-08 10:02:55 +00:00
Jordan K. Hubbard
f6284247b7 Make this properly respect obj dirs. 1996-04-07 03:34:35 +00:00
Jordan K. Hubbard
371a943ab5 Strive for a little more consistency with my examples. 1996-04-07 03:21:01 +00:00
Jordan K. Hubbard
b376966fbf Add an `aux' field for some other gunk I'm doing. 1996-04-05 02:29:12 +00:00
Mike Pritchard
6fad16fd59 Add some missing MLINKS, correct some cross references, correct some
file locations and some minor formatting/style problems.
1996-02-09 16:20:10 +00:00
Mike Pritchard
c211e812bb Added some missing MLINKS for section 3 man pages.
Also corrected a few minor formatting errors, file location and cross
references in some of the section 3 man pages.

This shuts up a lot of the output from "manck" for section 3.
1996-02-09 00:45:45 +00:00
Jordan K. Hubbard
b1c46b6825 Minor tweak to this test. 1996-02-08 11:55:15 +00:00
Jordan K. Hubbard
52abcf2c37 Fix small bug with negative item_no. 1996-01-10 13:57:46 +00:00
Jordan K. Hubbard
24b935d90e Refresh before calling selection hook. 1996-01-05 04:00:51 +00:00
Jordan K. Hubbard
cd5e85eb47 Create individual tests for each dialog feature. 1996-01-01 03:45:32 +00:00
Jordan K. Hubbard
738c371d22 Next round of changes - make dialog boxes drawable at arbitrary X,Y locations
and add selection traversal callbacks so context-sensitive behavior can
even be implemented for individual menu items.  These work around the two
largest issues holding me back with some of my sysinstall changes.
1996-01-01 03:43:58 +00:00
Jordan K. Hubbard
79b4be8ddf Add another test to round out the radiolist dialog suite.
Add more comments and attempt to make everything just that much
more understandable.
1995-12-23 14:53:07 +00:00