aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/dmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* Whoops - really make the "fix" I did to the dmenuToggleVariable logicJordan K. Hubbard2000-03-081-2/+8
| | | | | | | work. Notes: svn path=/head/; revision=57825
* Toggle variables between YES and NO values, don't just set them to YESJordan K. Hubbard2000-02-261-5/+4
| | | | | | | or unset them. That makes it impossible to turn something off. Notes: svn path=/head/; revision=57502
* Completely rip-out and redesign sysinstall's refresh model as wellJordan K. Hubbard1999-12-141-12/+15
| | | | | | | | | | | | | | | as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds. Notes: svn path=/head/; revision=54587
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Ack! Correct a typo which crept into here and reshuffle the index backJordan K. Hubbard1999-02-061-2/+2
| | | | | | | into alphabetical order. Notes: svn path=/head/; revision=43707
* Add one more "escape" for marking internal variables.Jordan K. Hubbard1999-02-051-5/+5
| | | | Notes: svn path=/head/; revision=43688
* Totally change the way variables are accounted for in sysinstall.Jordan K. Hubbard1999-02-051-7/+7
| | | | | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it. Notes: svn path=/head/; revision=43685
* Fix some bogons with variable handling.Jordan K. Hubbard1998-03-151-2/+2
| | | | Notes: svn path=/head/; revision=34606
* Correct misfeature with quoting, better error reporting.Jordan K. Hubbard1998-03-101-6/+10
| | | | Notes: svn path=/head/; revision=34472
* Add a new startup variables menu for tweaking rc.conf variables in moreJordan K. Hubbard1997-10-141-1/+23
| | | | | | | | | detail (also added more of them to the networking services menu). Add new dmenuISetVariable() function for interactive setting of non-boolean flags. Notes: svn path=/head/; revision=30414
* Put all variables in VAR_ #define's to force a single location for allPaul Traina1997-09-171-2/+2
| | | | | | | | of these magic knobs. This is purely cosmetic and a documentation issue so we don't have to glop through the source code looking for gems. Notes: svn path=/head/; revision=29539
* YAMF22Jordan K. Hubbard1997-06-131-14/+30
| | | | Notes: svn path=/head/; revision=26610
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Correct a real brain-o in my check for when a "fixup" should be run.Jordan K. Hubbard1997-01-191-1/+1
| | | | | | | Don't recreate parent menus just for submenus - it's irritating. Notes: svn path=/head/; revision=21861
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Do something I've wanted to do for quite some time - collapse all theJordan K. Hubbard1997-01-031-2/+1
| | | | | | | | common layout code into some work functions and make all the layout-using routine adopt them. Also reorganize includes and generally clean up. Notes: svn path=/head/; revision=21243
* As Paul has just pointed out, much of my strncpy() usage was eitherJordan K. Hubbard1996-12-091-2/+2
| | | | | | | | | | bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina <pst@Shockwave.COM> Notes: svn path=/head/; revision=20247
* Sysinstall now offers the installation of a keymap early in the game!Joerg Wunsch1996-11-091-1/+21
| | | | | | | | | | | | | | | | | | Not all mappings are supported, most languages come only with one encoding since this should be sufficient to get up & running in using sysinstall, and we are already pretty tight on space. (My previous commit has already bumped the boot MFS size by another 50 KB for this.) This feature requires the `kbdcontrol -L' i've just committed. Plain text keymaps and the entire scanner are overkill for sysinstall. Also updated the list of available keymaps while i was at it. Reviewed by: jkh Notes: svn path=/head/; revision=19573
* Joerg's changes to add screen font and screenmap setting.Jordan K. Hubbard1996-11-071-2/+20
| | | | | | | | | Some changes of my own to make screen saver configuration a little more sane, and also make it easier to get to the keyboard/screen setup from the options menu. Notes: svn path=/head/; revision=19488
* Try to make screen update more efficient (less flickering) by moreJordan K. Hubbard1996-08-031-2/+2
| | | | | | | judicious use of dialog_clear_norefresh(). Notes: svn path=/head/; revision=17404
* Close PR#1542. Don't just assume 24 lines, get the tty size.Jordan K. Hubbard1996-08-011-2/+5
| | | | | | | | | | Some things may still display text on the 24th line, but that's because they've always been screens designed to fit into a minimal real-estate and have hardwired assumptions about the dimensions. They'll be a little harder to make dynamic. Notes: svn path=/head/; revision=17375
* Make the menu height calculation actually work.Jordan K. Hubbard1996-07-111-2/+2
| | | | | | | Make a menu more self-explanatory at user request. Notes: svn path=/head/; revision=17099
* Support compressed doc files again.Jordan K. Hubbard1996-07-051-2/+2
| | | | | | | | | | | Add a few strategic screen clears. Do a lot less wasted screen I/O in restoring screen contents that don't need restoring. Use tar instead of cp to back up /etc in installUpdate. Don't panic when upgrade shell exits. Notes: svn path=/head/; revision=16975
* Make it plainer how to exit.Jordan K. Hubbard1996-07-021-9/+13
| | | | Notes: svn path=/head/; revision=16887
* Fix a truly stupid bug which broke the package installation menuJordan K. Hubbard1996-06-121-1/+11
| | | | | | | | for everything _but_ the multi-user case now (it was the opposite before :-). That means adding packages with the 2.2-960511-SNAP boot floppy is busted. Feh. Notes: svn path=/head/; revision=16326
* Bump snapshot release date - looks like I was off by a coupleJordan K. Hubbard1996-04-281-8/+10
| | | | | | | | | of days! More display fixes to sysinstall and assorted tweaking. Notes: svn path=/head/; revision=15416
* Quite a few changes:Jordan K. Hubbard1996-04-251-7/+5
| | | | | | | | | | | | | 1. Fix the last display bugs (I hope) by use of dialog rebuilds at stategic points. 2. Clean up the distributions menus so that everybody (that's reasonable) has All and Clear options for setting/clearing things en-masse. 3. Various attempts at display optimization. 4. Change the wording of the `Don't use Write!' dialogs to make them more explicitly define when and when not to use the option. Notes: svn path=/head/; revision=15383
* Bring this into sync.Jordan K. Hubbard1996-04-231-26/+17
| | | | | | | | | | | | | I still have a _very very annoying_ display bug which occurs when a menu item causes a submenu to be displayed - the screen repaints for the original menu (which is restored upon return from the submenu) are off by about 4 characters. I've tried restoring the screen, the cursor position, you name it - same deal. Grrrr! This commit is my first step in trying to get someone else to help me look into this one since I'm just tearing my hair out at this point! Notes: svn path=/head/; revision=15355
* 1. Update all the copyrights to delete useless clauses 3 and 4.Jordan K. Hubbard1996-04-131-23/+32
| | | | | | | | 2. Change more of the menu code over to new system. 3. Streamline label editor. Notes: svn path=/head/; revision=15242
* Major surgery.Jordan K. Hubbard1996-04-071-67/+94
| | | | | | | | | | | | | | | | | | 1. Use new dialog menu hacks (no strings, just arrays of dialogMenuItem structs) so that I can create composite menus with radio/checkbox/... items in them, removing some long-standing UI bogons in various menus. This work isn't finished yet, but will be done in two phases. This is phase one. 2. Remove all the script installation stuff. I never got time to document it, it was arcane and it just complicated much of the code. There are better ways of doing this if I want to do auto-driven installations later. 3. Remove much dead code and otherwise attempt to remove as much historical grot as possible so that this code is easier to hack on. This is also a two-stage process, phase one of which is now complete. Notes: svn path=/head/; revision=15091
* Miscellaneous cleanup before big round of menu restructuring (to use newJordan K. Hubbard1996-03-021-8/+4
| | | | | | | libdialog features). Notes: svn path=/head/; revision=14321
* Update the -current sources from the 2.1 branch.Peter Wemm1995-12-071-23/+39
| | | | | | | Approved (in spirit) by: jkh Notes: svn path=/head/; revision=12661
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-54/+66
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8881
* Bring everybody up to date on my morning's work.Jordan K. Hubbard1995-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 1. Fix a few bugs in the ftp installation code and implement proper ftp and network shutdown routines. 2. Clean up the menus a fair bit - add a FreeBSD configuration menu. 3. Eliminate the last of the "chaining" - the installation now does the most obvious thing in the most obvious cases and doesn't present you with more menus than you were expecting. This makes it necessary to be a little more explicit in places, but it's still less confusing. 4. Add a few more safety nets for the user. Change a few hard-and-fast limits to warnings (it now runs as non-root, Bruce). 5. Add descriptions for all the supported ethernet cards. 6. Make the cpio floppy extract put up a menu requesting the drive you wish to use if you have more than one; don't just always assume drive A. Notes: svn path=/head/; revision=8727
* Commit my latest so that Gary can sync up - this version should alsoJordan K. Hubbard1995-05-171-3/+4
| | | | | | | | be the grounds for our first round of testing in the release I'm rolling. It doesn't load the distributions yet, but it should do everything else. Notes: svn path=/head/; revision=8576
* This does _not yet compile_; I'm simply bringing in my changes fromJordan K. Hubbard1995-05-161-2/+13
| | | | | | | | this weekend in order to more easily sync with my CVS tree at home. Another commit relative to these changes will follow shortly. Notes: svn path=/head/; revision=8549
* First round of changes after testing this on actual systems. Clean upJordan K. Hubbard1995-05-111-2/+2
| | | | | | | | some of the badly displayed menus, use the proper notification box for messages, make proceed work. Notes: svn path=/head/; revision=8438
* Whoops - dispatch() takes multiple args now.Jordan K. Hubbard1995-05-101-2/+2
| | | | Notes: svn path=/head/; revision=8406
* Fold in all my recent changes.Jordan K. Hubbard1995-05-101-64/+14
| | | | | | | | | | Do another clean-up pass over this, making the generic menu handler much more powerful (now handles multiple dispatch). A few more menus fleshed out and the beginnings of the distribution handler committed. Should be transfering full distributions over in the next commit. Notes: svn path=/head/; revision=8405
* Commit my latest changes before having a nap. Still not close to done,Jordan K. Hubbard1995-05-011-29/+34
| | | | | | | | | nor is it in sync with my working sources, but it leaves me less CVS hassles to bring in the new files at this time. Still no documentation to translate quite yet, but soon. This stuff is actually very close now. Notes: svn path=/head/; revision=8208
* o Add extra menu types (radio implemented, multiple choice shortly).Jordan K. Hubbard1995-04-291-79/+64
| | | | | | | | | | | | | o Make the framework generally more robust. o Figured out how to nest the menu descriptions - no more grotty initialization of menus. o Fix bug with helpline and helpfile not being reset. o Add stubs for the media selection code. Coming next: Fdisk and disklabel screens using Phk's new libdisk stuff. Notes: svn path=/head/; revision=8174
* Latest raft of changes.Jordan K. Hubbard1995-04-271-2/+20
| | | | | | | | | | Added another couple of menu item types. Reshuffled the menus and added a few more. Sure wish I could figure out how to initialize a menu with _one_ initializer rather than two! :( Notes: svn path=/head/; revision=8107
* Here is my first "framework" commit of the new sysinstall. There is a LOTJordan K. Hubbard1995-04-271-0/+191
more to come in the next 24 hours, this is just the first stable result of 8 hours of hacking so far. The specification format for menus is pretty much hammered out and the beginnings (very humble) of the doc hierarchy are present for an example. It should be quite easy to add a lot more menus quickly to this since I did go somewhat out of my way to make the framework easy to work with. This is NOT the glorious semi-graphical sysinstall (or whatever its name will be) that the install-geeks are working on, this is simply the "son of sysinstall" I've been promising to write in the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R). Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=8097