Commit Graph

882 Commits

Author SHA1 Message Date
ache
33a9fbbc76 Activate Japanese NLS and KANJI support 2000-06-11 03:26:08 +00:00
ache
2c6f62e2ff Fix one conditionalization in my prev. commit 2000-06-06 13:02:52 +00:00
ache
08693c6a2b Greately simplify oxtabs fix by simple setting f_notabs for f_color 2000-06-06 12:44:29 +00:00
ache
810473589e Honor f_notabs flag even in COLORLS 2000-06-06 12:25:17 +00:00
ache
9f1fa71919 Back out spaces to TABs replace removing for COLORLS
Rewrite corresponding comment to say what happens in reality with oxtabs
and current terminal column.
2000-06-06 12:10:07 +00:00
ache
307c56dfb9 Don't replace TABs with spaces for COLORLS because "some terminals get confused"
as comment says. I know no terminal confused by this. If even such terminal
exists, it must be termcap flag for this, not hardcoded in ls.
2000-06-06 07:32:20 +00:00
ache
a24c251a9b Add -G to usage: if COLORLS 2000-06-06 07:29:43 +00:00
ache
0f2a313fa4 Staticize more functions 2000-06-06 07:19:50 +00:00
ache
943a6e1adc Move colorquit() prototype to extern.h
Add "extern" to variables declarations in extern.h to not make them
commons into each compiled file.
2000-06-06 07:14:01 +00:00
ache
5355834dc4 Make signal handler safe - don't use stdio (pointed by bde)
Staticize some color functions
Add yet one tolower() call which is forgotten after check
Don't check for OOPS - not really needed
2000-06-06 06:52:03 +00:00
ache
15b03c2538 Reflect reality:
yellow -> brown
white -> light grey
2000-06-06 00:42:24 +00:00
ache
6272adc2a1 Get rid of curses completely - use tgoto instead of tparm 2000-06-05 20:54:46 +00:00
cracauer
3a80c33829 Do SIGINT cleanup for SIGQUIT as well. 2000-06-05 20:38:47 +00:00
ache
6536a3f105 Kill yourself in ^C handler, not exit(1) to allow script to sense signal 2000-06-05 20:08:50 +00:00
ache
00dd68e3d7 Cosmetique of prev. optimization - don't use global variable 2000-06-05 19:56:52 +00:00
ache
2a5d3aa5b1 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
ache
a8edda659f Don't use curses includes, include termcap.h instead
Add ^C reaction set
2000-06-05 19:36:06 +00:00
ache
0468aeeaa9 Don't use ncurses, use termcap
Add DPADD
2000-06-05 19:34:31 +00:00
joe
ab86341fa6 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
joe
59ff4f2789 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
joe
613e5ba349 * 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
jwd
3c862d2c44 Add -g for gigabyte sizes.
Approved by:	jkh
2000-06-03 20:17:39 +00:00
joe
94644071d6 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
obrien
e8074be4b3 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
2637bd1196 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
dbaker
dc5f566f2b 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
obrien
5b76cb9de0 In its current state, this file is no longer needed. 2000-05-15 17:50:38 +00:00
bde
5c36208659 Don't forget to clean csh.1.
Fixed some style bugs.
2000-05-15 14:24:32 +00:00
cracauer
41dfb7ba25 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
cracauer
52da0fced7 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
sheldonh
ea43758f6a 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
sheldonh
5e0dc361bb 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
4b5eb94748 Remove test for block device. 2000-05-07 08:56:21 +00:00
jkoshy
5cfaeab905 Install a manual page for `tcsh(1)', for completeness.
Approved by:	obrien
2000-05-05 08:12:11 +00:00
asmodai
888d579612 Remove unused #include. 2000-05-01 18:34:36 +00:00
joe
095681660c 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
ache
b6ec16ff93 Fix warn format
Pointed-by: bde
2000-04-30 17:12:49 +00:00
ache
24d1eb8e5f 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
ache
408144e1b5 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
ache
e7b1166a35 Describe drainwait 2000-04-27 22:08:29 +00:00
ache
56d7e97f31 part of gfmt really changed commit 2000-04-27 21:48:48 +00:00
ache
f61af6309a gfmt: set 'changed' flags only if something really changed. 2000-04-27 21:45:41 +00:00
ache
1c00526cf7 Add ability to manipulate with drain wait time 2000-04-27 21:31:23 +00:00
ache
524b4d932b Activate ja nls if WANT_KANJI
Fix 'make release'
Suppress 'make distribute'
2000-04-24 08:14:16 +00:00
obrien
693ac85cf0 Pass "WANT_KANJI" from make.conf to the compiler. 2000-04-23 18:08:49 +00:00
obrien
86198ed6c9 MBYTEDEBUG not needed for "WANT_KANJI"
Submitted by:	Hajimu UMEMOTO <ume@mahoroba.org>
2000-04-23 18:08:10 +00:00
obrien
fe67f768fb 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
ache
088861cd52 Fix 'make distribute' 2000-04-21 12:34:41 +00:00
ache
af8fee5cf1 Disable ja NLS until clarifying what needed else to support it 2000-04-21 10:14:09 +00:00
cracauer
bb4531b545 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