Add define for Kirk Smith's USR Courier driver. Change default baud
[unix-history] / usr / src / usr.bin / window / ttf100.c
index 7c6af3c..a6e6fad 100644 (file)
@@ -1,7 +1,13 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)ttf100.c   3.6 %G%";
+static char sccsid[] = "@(#)ttf100.c   3.8 %G%";
 #endif
 
 #endif
 
+/*
+ * Copyright (c) 1983 Regents of the University of California,
+ * All rights reserved.  Redistribution permitted subject to
+ * the terms of the Berkeley Software License Agreement.
+ */
+
 #include "ww.h"
 #include "tt.h"
 
 #include "ww.h"
 #include "tt.h"
 
@@ -16,15 +22,18 @@ short f100_frame[16] = {
        'K'|G,  'D'|G,  'K'|G,  'O'|G,
        'C'|G,  'L'|G,  'N'|G,  'I'|G
 };
        'K'|G,  'D'|G,  'K'|G,  'O'|G,
        'C'|G,  'L'|G,  'N'|G,  'I'|G
 };
-extern char *gen_AE, *gen_AS;
+extern struct tt_str *gen_AE, *gen_AS;
 
 tt_f100()
 {
 
 tt_f100()
 {
+       static struct tt_str ae = { "\033%", 2 };
+       static struct tt_str as = { "\033$", 2 };
+
        if (tt_generic() < 0)
                return -1;
        tt.tt_frame = f100_frame;
        tt.tt_availmodes |= WWM_GRP;
        if (tt_generic() < 0)
                return -1;
        tt.tt_frame = f100_frame;
        tt.tt_availmodes |= WWM_GRP;
-       gen_AS = "\033$";
-       gen_AE = "\033%";
+       gen_AS = &as;
+       gen_AE = &ae;
        return 0;
 }
        return 0;
 }