date and time created 83/06/27 14:19:22 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1983 05:19:22 +0000 (21:19 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 28 Jun 1983 05:19:22 +0000 (21:19 -0800)
SCCS-vsn: lib/libplot/t4014/linemod.c 4.1

usr/src/lib/libplot/t4014/linemod.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/t4014/linemod.c b/usr/src/lib/libplot/t4014/linemod.c
new file mode 100644 (file)
index 0000000..1885b87
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef lint
+static char sccsid[] = "@(#)linemod.c  4.1 (Berkeley) %G%";
+#endif
+
+linemod(s)
+char *s;
+{
+       char c;
+       putch(033);
+       switch(s[0]){
+       case 'l':       
+               c = 'd';
+               break;
+       case 'd':       
+               if(s[3] != 'd')c='a';
+               else c='b';
+               break;
+       case 's':
+               if(s[5] != '\0')c='c';
+               else c='`';
+       }
+       putch(c);
+}