Subversion Repositories planix.SVN

Rev

Rev 113 | Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 115
Line 15... Line 15...
15
/*
15
/*
16
 * Set command.
16
 * Set command.
17
 */
17
 */
18
char	optname[ONMSZ];
18
char	optname[ONMSZ];
19
 
19
 
20
void
-
 
21
set()
20
set()
22
{
21
{
23
	register char *cp;
22
	register char *cp;
24
	register struct option *op;
23
	register struct option *op;
25
	register int c;
24
	register int c;
Line 143... Line 142...
143
 */
142
 */
144
				if (inopen)
143
				if (inopen)
145
error("Can't change type of terminal from within open/visual");
144
error("Can't change type of terminal from within open/visual");
146
				setterm(optname);
145
				setterm(optname);
147
			} else {
146
			} else {
148
				strcpy(op->osvalue, optname);
147
				CP(op->osvalue, optname);
149
				op->odefault = 1;
148
				op->odefault = 1;
150
			}
149
			}
151
			break;
150
			break;
152
		}
151
		}
153
next:
152
next: