use aliases in -m mapping
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Fri, 16 Mar 1984 06:53:36 +0000 (22:53 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Fri, 16 Mar 1984 06:53:36 +0000 (22:53 -0800)
SCCS-vsn: usr.bin/tset/tset.c 1.8

usr/src/usr.bin/tset/tset.c

index 693d9c7..8a94afb 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)tset.c     1.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)tset.c     1.8 (Berkeley) %G%";
 #endif
 
 /*
 #endif
 
 /*
@@ -895,7 +895,12 @@ mapold:                            Map->Ident = NewType;
 
        /* check for dialup or other mapping */
        if (Mapped)
 
        /* check for dialup or other mapping */
        if (Mapped)
+       {
+               if (!(Alias[0] && isalias(TtyType)))
+                       if (tgetent(Capbuf, TtyType) > 0)
+                               makealias(Capbuf);
                TtyType = mapped(TtyType);
                TtyType = mapped(TtyType);
+       }
 
        /* TtyType now contains a pointer to the type of the terminal */
        /* If the first character is '?', ask the user */
 
        /* TtyType now contains a pointer to the type of the terminal */
        /* If the first character is '?', ask the user */