Pick up some more tn3270-specific function.
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 28 Oct 1987 08:00:44 +0000 (00:00 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Wed, 28 Oct 1987 08:00:44 +0000 (00:00 -0800)
SCCS-vsn: usr.bin/telnet/tn3270.c 1.4

usr/src/usr.bin/telnet/tn3270.c

index 946f236..b5bb8ae 100644 (file)
@@ -26,6 +26,33 @@ static int
        Sent3270TerminalType;   /* Have we said we are a 3270? */
 
 
        Sent3270TerminalType;   /* Have we said we are a 3270? */
 
 
+#if    defined(unix)
+static
+settranscom(argc, argv)
+       int argc;
+       char *argv[];
+{
+       int i, len = 0;
+       char *strcpy(), *strcat();
+
+       if (argc == 1 && transcom) {
+          transcom = 0;
+       }
+       if (argc == 1) {
+          return;
+       }
+       for (i = 1; i < argc; ++i) {
+           len += 1 + strlen(argv[1]);
+       }
+       transcom = tline;
+       (void) strcpy(transcom, argv[1]);
+       for (i = 2; i < argc; ++i) {
+           (void) strcat(transcom, " ");
+           (void) strcat(transcom, argv[i]);
+       }
+}
+#endif /* defined(unix) */
+
 /*
  * DataToNetwork - queue up some data to go to network.  If "done" is set,
  * then when last byte is queued, we add on an IAC EOR sequence (so,
 /*
  * DataToNetwork - queue up some data to go to network.  If "done" is set,
  * then when last byte is queued, we add on an IAC EOR sequence (so,