SCCS-vsn: usr.bin/window/lcmd.c 3.9
SCCS-vsn: usr.bin/window/lcmd1.c 3.12
-static char *sccsid = "@(#)lcmd.c 3.8 83/12/06";
+static char *sccsid = "@(#)lcmd.c 3.9 84/01/11";
int l_buffer();
int l_close();
int l_cursormodes();
int l_buffer();
int l_close();
int l_cursormodes();
int l_escape();
int l_label();
int l_select();
int l_escape();
int l_label();
int l_select();
struct lcmd_arg arg_buffer[];
struct lcmd_arg arg_close[];
struct lcmd_arg arg_cursormodes[];
struct lcmd_arg arg_buffer[];
struct lcmd_arg arg_close[];
struct lcmd_arg arg_cursormodes[];
+struct lcmd_arg arg_debug[];
struct lcmd_arg arg_escape[];
struct lcmd_arg arg_label[];
struct lcmd_arg arg_select[];
struct lcmd_arg arg_escape[];
struct lcmd_arg arg_label[];
struct lcmd_arg arg_select[];
"buffer", 1, l_buffer, arg_buffer,
"close", 2, l_close, arg_close,
"cursormodes", 2, l_cursormodes, arg_cursormodes,
"buffer", 1, l_buffer, arg_buffer,
"close", 2, l_close, arg_close,
"cursormodes", 2, l_cursormodes, arg_cursormodes,
+ "debug", 1, l_debug, arg_debug,
"escape", 1, l_escape, arg_escape,
"label", 1, l_label, arg_label,
"select", 2, l_select, arg_select,
"escape", 1, l_escape, arg_escape,
"label", 1, l_label, arg_label,
"select", 2, l_select, arg_select,
-static char *sccsid = "@(#)lcmd1.c 3.11 83/12/09";
+static char *sccsid = "@(#)lcmd1.c 3.12 84/01/11";
+struct lcmd_arg arg_debug[] = {
+ { "flag", 1, ARG_ANY },
+ { 0, 0, 0 }
+};
+
+l_debug(v)
+struct value *v;
+{
+ v->v_type = V_NUM;
+ v->v_num = debug;
+ debug = vtobool(&arg_debug[0].arg_val, 1, debug);
+}
+
struct lcmd_arg arg_escape[] = {
{ "escapec", 1, ARG_NUM },
{ 0, 0, 0 }
struct lcmd_arg arg_escape[] = {
{ "escapec", 1, ARG_NUM },
{ 0, 0, 0 }