Commit graph

867 commits

Author SHA1 Message Date
Andrey A. Chernov 4304e142c2 Reflect reality:
yellow -> brown
white -> light grey
2000-06-06 00:42:24 +00:00
Andrey A. Chernov c85e2c8e57 Get rid of curses completely - use tgoto instead of tparm 2000-06-05 20:54:46 +00:00
Martin Cracauer ab08444f95 Do SIGINT cleanup for SIGQUIT as well. 2000-06-05 20:38:47 +00:00
Andrey A. Chernov faebfe2e07 Kill yourself in ^C handler, not exit(1) to allow script to sense signal 2000-06-05 20:08:50 +00:00
Andrey A. Chernov 47bb6b11f3 Cosmetique of prev. optimization - don't use global variable 2000-06-05 19:56:52 +00:00
Andrey A. Chernov cf0feaeee9 Don't use curses includes, include termcap.h instead
Don't use curses functions, use tputs instead
Add ^C reaction - reset colors
Optimization - don't turn off colors after EACH file printed.
Fix wrong ctype macro arg type in LSCOLORS parsing
2000-06-05 19:39:39 +00:00
Andrey A. Chernov bd82d8ab8f Don't use curses includes, include termcap.h instead
Add ^C reaction set
2000-06-05 19:36:06 +00:00
Andrey A. Chernov ecb7192ace Don't use ncurses, use termcap
Add DPADD
2000-06-05 19:34:31 +00:00
Josef Karthauser 5a890e22bf Don't look up the ANSI sequences each time a colour is changed,
this is extremely inefficient, instead write them all down at the
beginning.

The correct sequence to switch colours off is to first use 'op' if
it exists, otherwise use 'oc'.  If neither of these exist then we
shouldn't be doing colour with this terminal.

Reviewed by:	ache
2000-06-05 03:51:29 +00:00
Josef Karthauser 3ad254b3de Disable colour support in ls when building the fixit floppy, and make
a note of it in the release Makefile.
2000-06-05 02:25:55 +00:00
Josef Karthauser 74985094ef * Re-implement colour support using termcap's AF and AB capabilities
to manage the ANSI colour sequences.  Colour support is disabled
  unless the TERM environment variable references a valid termcap.

* Allow optional compilation of the colour support in the Makefile,
  defaulting to yes.  This allows us to switch it off for fixit
  floppies and other mediums where space is an issue and the extra
  bloat of statically linking with ncurses isn't acceptable.

* Display a warning if colour is requested with '-G' but support
  for it isn't compiled in.
2000-06-05 02:14:01 +00:00
John W. De Boskey 93a3fa19b5 Add -g for gigabyte sizes.
Approved by:	jkh
2000-06-03 20:17:39 +00:00
Josef Karthauser 3885812c8c Add colour support to /bin/ls (at a cost of 1056 bytes on my system).
It is not switched on by default and must be enabled with the -G
flag.  When using ls -G the output behaviour is modified with ANSI
colour sequences wrapped around filenames to help distinguish file
types.  (Colours can be redefined in the LSCOLORS environment
variable as described in the manual page.)

Colour support is silently disabled (if switched on) if stdout
isn't a tty.

Based on:	asami's colorls port.
PR:		bin/18900 && ports/18616.
2000-06-02 14:53:42 +00:00
David E. O'Brien 015a53cfff Fix ``dd if=/dev/zero of=/dev/daN'' on the Alpha by allowing the label
to be overwritten.

Submitted by:	green
2000-05-24 06:47:10 +00:00
Brian Somers 7ecff35b0d Propogate the ``call mktime'' flag from adjwday() down to adjday().
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
2000-05-23 23:58:18 +00:00
Daniel Baker d5dc63cc0a Correct confusion and differentiate appropriately between GMT and UTC when
date is launched with the "u" argument.  It now operates in the documented
manner.

Fix typo in date man page.

Submitted by:	David McNett <nugget@slacker.com>
2000-05-19 18:02:25 +00:00
David E. O'Brien 0e2e66b060 In its current state, this file is no longer needed. 2000-05-15 17:50:38 +00:00
Bruce Evans d94edef5b5 Don't forget to clean csh.1.
Fixed some style bugs.
2000-05-15 14:24:32 +00:00
Martin Cracauer 98e05fd3ef Fix parsing of string for eval command.
PR:		18447
Submitted by:	Koji Mori <mori@tri.asanuma.co.jp>
2000-05-15 13:02:07 +00:00
Martin Cracauer b2acf8878e Fix environment passung to eval'ed commands.
PR:		bin/6577
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
Approved by:	silence amoung other sh experts
2000-05-15 12:33:17 +00:00
Sheldon Hearn 0f5fcaa3f1 Supply only one author name per instance of %A, as per mdoc.samples(7).
PR:		18465
Submitted by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-10 09:49:04 +00:00
Sheldon Hearn f167d7fb3e Fix miscellaneous mdoc macro argument limit infringements.
PR:		18465
Reported by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-09 14:02:06 +00:00
Kris Kennaway 97ccc6c7ab Remove test for block device. 2000-05-07 08:56:21 +00:00
Joseph Koshy 54e0092517 Install a manual page for `tcsh(1)', for completeness.
Approved by:	obrien
2000-05-05 08:12:11 +00:00
Jeroen Ruigrok van der Werven 69757cf969 Remove unused #include. 2000-05-01 18:34:36 +00:00
Josef Karthauser 2ef72bc152 Fixes a potential buffer overflow with 'ed [MAXPATHLEN + 1 characters]'.
Submitted by:	Mike Heffner <spock@techfour.net>
Submitted on:	audit@freebsd.org
2000-04-30 20:46:14 +00:00
Andrey A. Chernov 43175e5e19 Fix warn format
Pointed-by: bde
2000-04-30 17:12:49 +00:00
Andrey A. Chernov df41cfee75 Back out all drainwait changes. It is enough controllable via sysctl or
comcontrol, having it in stty cause too many problems with existing drivers
and tty access permissings of non-superuser.

Asked-by: bde
2000-04-30 17:04:26 +00:00
Andrey A. Chernov 3363a08f8c gfmt: set drainwait only if changed
It allows to restore tty state without a warning for non-superuser
2000-04-30 16:22:09 +00:00
Andrey A. Chernov 441e1d5cb8 Describe drainwait 2000-04-27 22:08:29 +00:00
Andrey A. Chernov b2953dfa7d part of gfmt really changed commit 2000-04-27 21:48:48 +00:00
Andrey A. Chernov 18430c2095 gfmt: set 'changed' flags only if something really changed. 2000-04-27 21:45:41 +00:00
Andrey A. Chernov d0834e7f9d Add ability to manipulate with drain wait time 2000-04-27 21:31:23 +00:00
Andrey A. Chernov be2c49b193 Activate ja nls if WANT_KANJI
Fix 'make release'
Suppress 'make distribute'
2000-04-24 08:14:16 +00:00
David E. O'Brien c22ae8f672 Pass "WANT_KANJI" from make.conf to the compiler. 2000-04-23 18:08:49 +00:00
David E. O'Brien 58a09c5f58 MBYTEDEBUG not needed for "WANT_KANJI"
Submitted by:	Hajimu UMEMOTO <ume@mahoroba.org>
2000-04-23 18:08:10 +00:00
David E. O'Brien 8a5e48368a Until it's impact is better understood, only active KANJI/DSPMBYTE/MBYTEDEBUG
if "WANT_KANJI" is defined in /etc/make.conf.

Submitted by:	Hajimu UMEMOTO <ume@mahoroba.org>
2000-04-21 18:45:06 +00:00
Andrey A. Chernov 428a34d8ec Fix 'make distribute' 2000-04-21 12:34:41 +00:00
Andrey A. Chernov 75603ec101 Disable ja NLS until clarifying what needed else to support it 2000-04-21 10:14:09 +00:00
Martin Cracauer d62ec71c31 Rename the trace() function (that is build only in the -DDEBUG=2
case), so that it doesn't clash with the ncurses function of the same
name when linking statically with -ltermcap.

The linker only complains when -static is used, and it is not clear
whether this is a bug.

PR:		bin/18104
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
2000-04-20 11:39:11 +00:00
Martin Cracauer e988388eff Include <errno.h> when compiling with -DDEBUG=2
PR:		bin/18104
Submitted by:	mellon@pobox.com
2000-04-20 09:55:57 +00:00
Martin Cracauer f01e3d0cfe Fix warnings, some of them serious because sh violated name
spaces reserved by the header files it includes.

mkinit.c still produces C code with redundant declarations, although
they are more harmless since they automatically derived from the right
places.
2000-04-20 09:49:16 +00:00
Andrey A. Chernov 43cf5ff9b4 Activate NLS.
Optimize NLS by not wasting space copying the same .cat but use symbolic links
instead.
2000-04-20 08:58:11 +00:00
Andrey A. Chernov 491a30c968 Activate finnish set 2000-04-20 07:08:43 +00:00
David E. O'Brien 386c7e9f4e Add NLS files. Finish and Greek are WIPs.
Submitted by:	ache
2000-04-20 06:50:23 +00:00
David E. O'Brien 585dfedb38 Use our system malloc(). 2000-04-19 15:15:44 +00:00
David E. O'Brien 77f2a34fb1 Install /bin/tcsh also. 2000-04-19 15:15:19 +00:00
David E. O'Brien 325c70b76a Upgrade csh. 2000-04-18 07:31:36 +00:00
David E. O'Brien bcf88e07f6 Add a NO_TCSH knob. 2000-04-17 20:32:13 +00:00
Jeroen Ruigrok van der Werven 2192b407ac Sync us up to OpenBSD's cat.1 v1.18 and cat.c v1.9.
This gets rid of a bogus cast of NULL in setbuf().
Lets us know the buffer malloc failed.

Reworks the manpage a bit to make it more mdoc(7) compliant, adds
examples.
2000-04-14 21:01:35 +00:00