24 lines
321 B
C
24 lines
321 B
C
#ifndef lint
|
|
static char sccsid[] = "@(#)linemod.c 1.1 94/10/31 SMI"; /* from UCB 4.1 6/27/83 */
|
|
#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);
|
|
}
|