window(1): Remove __RCSID & friends.
[dragonfly.git] / usr.bin / window / char.c
index eb247d2..d5c455a 100644 (file)
@@ -1,3 +1,6 @@
+/*     @(#)char.c      8.1 (Berkeley) 6/6/93   */
+/*     $NetBSD: char.c,v 1.6 2009/04/14 08:50:06 lukem Exp $   */
+
 /*
  * Copyright (c) 1983, 1993
  *     The Regents of the University of California.  All rights reserved.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- * @(#)char.c  8.1 (Berkeley) 6/6/93
- * $FreeBSD: src/usr.bin/window/char.c,v 1.2.14.1 2001/05/17 09:45:00 obrien Exp $
- * $DragonFly: src/usr.bin/window/char.c,v 1.2 2003/06/17 04:29:33 dillon Exp $
  */
 
 #include "char.h"
 
-char *_unctrl[] = {
+char _cmap[] = {
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^@ - ^C */
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^D - ^G */
+       _C,             _C|_P,          _C,             _C|_U,  /* ^H - ^K */
+       _C|_U,          _C,             _C|_U,          _C|_U,  /* ^L - ^O */
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^P - ^S */
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^T - ^W */
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^U - ^[ */
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,  /* ^\ - ^_ */
+
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _P|_U,
+       _P|_U,          _P|_U,          _P|_U,          _C|_U,
+
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U,
+       _C|_U,          _C|_U,          _C|_U,          _C|_U
+};
+
+const char *_unctrl[] = {
        "^@",   "^A",   "^B",   "^C",   "^D",   "^E",   "^F",   "^G",
        "^H",   "^I",   "^J",   "^K",   "^L",   "^M",   "^N",   "^O",
        "^P",   "^Q",   "^R",   "^S",   "^T",   "^U",   "^V",   "^W",