Andrey A. Chernov
195c7083da
Use %Ef
2000-06-22 16:57:39 +00:00
Sheldon Hearn
728a64be3f
Fix changes from 1.34 through 1.37:
...
Remove newly added hard sentence breaks.
Mark ANSI up as a type name (Tn).
Avoid parenthesized sentences and paragraphs.
2000-06-22 10:07:46 +00:00
Brian Somers
714c609be5
Mention the timezone where appropriate (for the -v option).
...
correct one of the -v options.
2000-06-22 10:02:33 +00:00
Josef Karthauser
e5516847ea
Order the ENVIRONMENT section alphabetically.
2000-06-21 21:56:50 +00:00
Josef Karthauser
1e715e3437
I broke locale sensitive ordering of date and month in
...
the long -l output format with the last commit. Fix it
by replacing the "%b %e" strftime format with "%Ef".
Make a note in the manual page that the LANG environment
variable affects the running of ls.
Reviewed by: ache
2000-06-21 21:49:57 +00:00
Josef Karthauser
97e4e97bd1
Don't assume that the output of strftime for "%c" ("national
...
representation of time and date") won't change in time. Instead
of hard coding the locations of the time elements and hoping that
they don't move use strftime to generate the desired formats in
the first place.
PR: bin/7826
2000-06-18 22:18:04 +00:00
Josef Karthauser
141d77b8cb
Switch over to using the new fflagstostr and strtofflags library calls.
2000-06-17 14:19:33 +00:00
Andrey A. Chernov
e1eb172980
Activate Japanese NLS and KANJI support
2000-06-11 03:26:08 +00:00
Andrey A. Chernov
18d8a22b61
Fix one conditionalization in my prev. commit
2000-06-06 13:02:52 +00:00
Andrey A. Chernov
22ff3e9e29
Greately simplify oxtabs fix by simple setting f_notabs for f_color
2000-06-06 12:44:29 +00:00
Andrey A. Chernov
322b47fd88
Honor f_notabs flag even in COLORLS
2000-06-06 12:25:17 +00:00
Andrey A. Chernov
6cd5adff75
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
Andrey A. Chernov
82dd3eab13
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
Andrey A. Chernov
a04eaf5b2e
Add -G to usage: if COLORLS
2000-06-06 07:29:43 +00:00
Andrey A. Chernov
1bf1478a9f
Staticize more functions
2000-06-06 07:19:50 +00:00
Andrey A. Chernov
fd4e4d608f
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
Andrey A. Chernov
38782c258d
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
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