Commit Graph

89 Commits

Author SHA1 Message Date
garbled
59b0a9509c Move the "Form Page:" status over slightly. Suggested by Peter Postma 2004-03-24 22:03:17 +00:00
garbled
0c0dadc4d9 Apply patch from PR 24832 to allow line lengths longer than 80 chars in
sushi forms.  By Peter Postma.
2004-03-24 19:14:07 +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
jdc
4c3bfcd943 Change the "exact match" parameter of set_field_type() to TRUE, to match
the change to match_enum() in libform (src/lib/libform/type_enum.c:r1.8).
From Brett Lymn.
Fixes PR bin/24604.
2004-03-22 19:03:19 +00:00
garbled
c5fb5d0d44 Apply patch from Peter Postma to fix the handling of nfsd_flags in rc.conf. 2004-03-10 19:03:16 +00:00
garbled
8a2d792237 Apply revised patch from bin/24647 by Peter Postma:
Adds a confirmation check before processing the data you have entered, or
sushi has entered for you on a form.
2004-03-09 20:26:24 +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
garbled
0e2f4ba6c4 Apply patches from bin/24642 by Peter Postma to fix the "no help is
available" message from sushi's help system.
2004-03-09 19:22:22 +00:00
garbled
1c06ce13b0 Apply patch from PR bin/24559 to fix incomplete lines in some forms.
From Peter Postma
2004-03-09 19:10:20 +00:00
grant
cacf2d0f45 s/netbsd.org/NetBSD.org/i 2003-11-12 13:31:07 +00:00
fvdl
03de13db6e Fix a few cases where NULL was used as integral value. 2003-10-21 02:55:43 +00:00
itojun
33c55cb2ac make use of realloc(3) safe 2003-10-16 06:19:11 +00:00
itojun
6ba71df691 use bounded string op 2003-07-16 06:40:47 +00:00
itojun
7087f39f8d use strlcpy/cat 2003-06-13 07:26:41 +00:00
wiz
d75f1336b3 Uppercase URL. 2003-05-14 14:30:59 +00:00
wiz
c57dfd43a9 A script, not an script. 2003-03-31 08:23:32 +00:00
perry
338db96096 recieving->receiving, escript->script, fixes PR misc/20746 (Igor Sobrado) 2003-03-31 00:45:39 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant
806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
perry
8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
jdc
99d5546aa4 Add a call to use_default_colors(). 2002-11-25 09:11:35 +00:00
mycroft
aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun
f46e921837 poll.h, not sys/poll.h 2002-09-23 03:36:03 +00:00
lukem
805b400ba7 use NETBSDSRCDIR as appropriate 2002-09-19 12:08:37 +00:00
mycroft
01d349833e select() -> poll()
Also, change the way console input is passed to the subprocess -- instead of
echoing it in sushi, instead set the pty to cooked mode and have it do any
echoing.  This will work better if we have scripts that accept input (sometimes
we don't want it visible; e.g. if it's a password) and also has the side effect
of allowing a command to be interrupted with ^C.
2002-09-19 00:45:47 +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
blymn
d8747fc408 Incorrect form commands were used for the left and right char handlers. 2002-08-07 11:03:45 +00:00
jdolecek
fceac2db48 After showing help, touchwin/wrefresh the stdscr, do not try to do
that for form subwindow, which may be NULL (or is always, even?).

This fixes SIGSEGV when one goes to
Network related configuration -> Modify the hosts file -> Delete host entries
and presses F1 (Help).
2002-07-26 08:43:26 +00:00
jdolecek
d5d1e7aa6c fgetln() does NOT return NUL-terminated string
This fixes bin/13624 by Jun-ichiro itojun Hagino
2002-07-26 07:59:33 +00:00
jdolecek
973b4b497c form_appenditem(): make sure fte->list is initialized
process_{pre,}form(): g/c unnecessary malloc, plug memory leak
gen_list(): only check ftp->list after realloc()
handle_{pre,}form(): allocate F[] via calloc(3), so that the memory is
     properly zeroed
2002-07-25 12:42:39 +00:00
jdolecek
d675751f34 g/c some pointless malloc()s 2002-07-25 12:39:26 +00:00
jdolecek
5ff2a932b1 launch_subwin(): make sure string 'command' is initialized; malloc may not return
zeroed memory. This should fix the SIGSEGV part of bin/17718
by Grant Beattie.
2002-07-25 12:34:09 +00:00
jdolecek
70accc48c9 add XXX comment for piece of very strange code; I don't currently
want to investigate more
2002-07-25 12:20:56 +00:00
jdolecek
ee3d448cbd Array retrurned by form_fields() is NOT NULL-terminated - use field_count()
to get amount of fields on the form instead.
This fixes a SIGSEGV problem I encountered, and possibly also the crash part
of bin/17718 by Grant Beattie.
2002-07-25 09:38:31 +00:00
christos
93756e61ad XXX: this code needs a lot more cleanup... There is no clear malloc/free
policy and the data dependent initialization is very fragile. I.e.
     the code assumes because the data entry is of type foo, it has
     initialized certain fields and others not.
- make sure list is not NULL before you use it.
- don't realloc on every loop iteration!
- don't increment i when there are short lines; leads to uninitialized
  list[i] entries [fixes bills' core-dump, hi bill!]
2002-04-02 18:59:54 +00:00
christos
3afdbb7d94 XXX: this code has a lot of bugs and needs further cleanup.
- don't allocate:
	char *p = malloc(len * sizeof(char *))
  when you mean:
	char *p = malloc(len)
- eliminate duplicated code by creating functions and try not to wrap
- use mvwinnstr instead of mvwinstr
2002-04-02 18:57:01 +00:00
blymn
f987c067b5 do not turn echo on after running a script, otherwise the forms display
will be messed up by input being echoed.
2002-02-12 12:21:01 +00:00
wiz
2b666b304a Drop a .Pp, sort sections. 2002-02-02 01:57:35 +00:00
wiz
a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
thorpej
bf0e32f7fc Remove unneeded/unused TREE_ISEMPTY() (which also happens to clash
with the TREE_ISEMPTY() in menutree.h, which gcc 3.1 correctly warns
about).
2001-12-31 20:00:40 +00:00
jhawk
521fae39bb .Nm punct => .Nm "" punct
minor markup fixes.
2001-12-15 21:21:00 +00:00
wiz
251b3464be heirarchy -> hierarchy 2001-08-24 10:24:45 +00:00
hubertf
c5967dbc76 Fix typo: heirarchies 2001-08-24 00:48:48 +00:00
wiz
1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
itojun
bb65ba4b13 fgetln() does not \0-terminate the result. 2001-08-03 09:18:58 +00:00
garbled
c63c221b86 Fix a bug in the multilist noted by Brett Lymn. When nothing was selected
from the popup, don't populate the field with a NULL buffer.

Edit the TODO list, removing a few fixed items from my bughunt tonight.
2001-08-01 09:08:55 +00:00
garbled
249cbcd0e5 add two more bugs 2001-08-01 01:02:55 +00:00
garbled
1092eb0c9d Add some known bugs for sushi.. lest I forget them. 2001-08-01 00:53:58 +00:00