comparison toys/catv.c @ 233:d4176f3f3835

Zap toys/Config.in and instead create generated/Config.in from contents of toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
author Rob Landley <rob@landley.net>
date Sat, 19 Jan 2008 17:08:39 -0600
parents 30a6db5a95c2
children 163498bf547b
comparison
equal deleted inserted replaced
232:cd4d5630c978 233:d4176f3f3835
1 /* vi: set sw=4 ts=4: */ 1 /* vi: set sw=4 ts=4:
2 /* 2 *
3 * cat -v implementation for toybox 3 * cat -v implementation for toybox
4 * 4 *
5 * Copyright (C) 2006, 2007 Rob Landley <rob@landley.net> 5 * Copyright (C) 2006, 2007 Rob Landley <rob@landley.net>
6 */ 6 *
7 * Not in SUSv3, but see "Cat -v considered harmful" at
8 * http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz
7 9
8 /* See "Cat -v considered harmful" at 10 config CATV
9 * http://cm.bell-labs.com/cm/cs/doc/84/kp.ps.gz */ 11 bool "catv"
12 default y
13 help
14 usage: catv [-evt] [filename...]
15
16 Display nonprinting characters as escape sequences. Use M-x for
17 high ascii characters (>127), and ^x for other nonprinting chars.
18
19 -e Mark each newline with $
20 -t Show tabs as ^I
21 -v Don't use ^x or M-x escapes.
22 */
10 23
11 #include "toys.h" 24 #include "toys.h"
12 25
13 // Callback function for loopfiles() 26 // Callback function for loopfiles()
14 27