Commit Graph

19 Commits

Author SHA1 Message Date
dsl 3cca093e74 Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
garbled 732560ccbd Add patches from Peter Postma in PR 24755 to cleanup output in sushi:
* hide the cursor everywhere except in forms (looks nicer)
        * fix repaint with lists (from TODO)
        * fix the form page (removes XXX)
        * force a pos_form_cursor() after every keypress in the forms
          to ensure that the selected field got the focus.
        * tweak the status message a bit.
2004-03-24 19:10:58 +00:00
garbled 0f7c881113 Apply patch from Peter Postma on tech-userlevel:
I've made a patch for sushi(8) for setting environment variables at startup.
This might be useful when a user needs a different terminal type.
The patch also fixes the searchpaths when the config file does not
contain any.
2004-03-09 20:16:16 +00:00
grant cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
itojun 33c55cb2ac make use of realloc(3) safe 2003-10-16 06:19:11 +00:00
itojun 7087f39f8d use strlcpy/cat 2003-06-13 07:26:41 +00:00
jdc 99d5546aa4 Add a call to use_default_colors(). 2002-11-25 09:11:35 +00:00
pooka a1c35451a3 move curses initialization higher in main to prevent the curses
error function from being called before curses is initialized
2002-08-13 18:21:25 +00:00
pooka d19d334a86 don't report curses initialization failure using curses 2002-08-13 18:16:31 +00:00
jdolecek d675751f34 g/c some pointless malloc()s 2002-07-25 12:39:26 +00:00
cgd c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
garbled 73ffa92b18 Fix one of the bugs in the TODO list, sushi would die with a bad endpoint
if you hit enter on one of the blank lines in the main menu.
2001-01-22 07:12:49 +00:00
garbled 3c1becf72b Fix a buffer overrun in the parsing of the searchpaths, and check the return
values of some curses functions I overlooked.
Pointed out by Brett Lymn in private email.
2001-01-14 21:23:23 +00:00
garbled b4aac50fda Changes to sushi to allow users to bind different keys to the various
built-in functions.  This allows users to change F1 to say, ^X, in the case
where a function key might not be available, or perhaps is bound to a window
manager.

problem noted by Nathan Williams
2001-01-10 10:00:29 +00:00
garbled ee3a00e29e de-lint 2001-01-10 03:05:48 +00:00
garbled 4ce5fb6f63 Handle finding help for F1 better in the toplevel menu.
TODO: print a dialog message if help cannot be found.
2001-01-09 09:41:41 +00:00
garbled 74db0945af Backout the addition of timeout(). This did not have the desired effect
at all.  problem noted by itojun on tech-userlevel.
2001-01-09 08:06:22 +00:00
garbled a2633f6a37 Add better handling of a failure to find any menus at all for sushi to
process.  Document the ability to use "quicknames" in the sushi manpage.
2001-01-08 21:19:31 +00:00
garbled fbbe4d12db Initial import of sushi.
Sushi is an interactive, menu-based program that is designed to aid
the user or administrator with administrative and complex tasks on thier
machines.

Sushi provides a menu of various functions that the user can perform on
his or her machine.  Once the user selects a desired function, the
function is either performed outright, or in most cases, the user is
asked to fill in a simple form with required and option information,
which is then processed by sushi, and the action occurs.

The programming interface for sushi is very simple.  There are
directories containing various files, such as menu indexes, or forms for
the user to fill out.  These files are interpreted by sushi to generate
the menus the user sees on his/her screen.  When the form is filled out
by the user, the entries are passed as command-line arguments to a
program, or script contained in one of the subdirectories.  In this way,
it is possible to add new entries to the sushi menu structure, by simply
adding a new menu item, form and script, the binary does not need to be
recompiled to take advantage of this new menu.
2001-01-05 01:28:33 +00:00