--- screen-4.0.2/process.c 2003-09-18 14:53:54.000000000 +0200
+++ screen-4.0.2-rzm/process.c 2003-12-16 13:23:15.000000000 +0100
@@ -60,6 +60,7 @@
extern int TtyMode, auto_detach, use_altscreen;
extern int iflag, maxwin;
extern int use_hardstatus, visual_bell;
+extern struct statusposstr statuspos;
#ifdef COLOR
extern int attr2color[][4];
extern int nattr2color;
@@ -2663,6 +2664,67 @@
if (msgok)
Msg(0, "messages displayed on %s", use_hardstatus ? "hardstatus line" : "window");
break;
+ case RC_STATUS:
+ if (display)
+ {
+ Msg(0, "%s", ""); /* wait till mintime (keep gcc quiet) */
+ RemoveStatus();
+ }
+ {
+ int i = 0;
+ while ( (i <= 1) && args[i]) {
+ if ( (strcmp(args[i], "top") == 0) || (strcmp(args[i], "up") == 0) )
+ {
+ statuspos.row = STATUS_TOP;
+ }
+ else
+ {
+ if ( (strcmp(args[i], "bottom") == 0) || (strcmp(args[i], "down") == 0) )
+ {
+ statuspos.row = STATUS_BOTTOM;
+ }
+ else
+ {
+ if (strcmp(args[i], "left") == 0)
+ {
+ statuspos.col = STATUS_LEFT;
+ }
+ else
+ {
+ if (strcmp(args[i], "right") == 0)
+ {
+ statuspos.col = STATUS_RIGHT;
+ }
+ else
+ {
+ Msg(0, "%s: usage: status [top|up|down|bottom] [left|right]", rc_name);
+ break;
+ }
+ }
+ }
+ }
+ i++;
+ }
+ }
+ break;
+ case RC_SOCKDIR:
+ if ( args[0] && (strcmp(args[0], "local") == 0) )
+ {
+ sockdir = SOCKDIR_LOCAL;
+ }
+ else
+ {
+ if ( args[0] && (strcmp(args[0], "shared") == 0) )
+ {
+ sockdir = SOCKDIR_SHARED;
+ }
+ else
+ {
+ Msg(0, "%s: usage: sockdir local|shared", rc_name);
+ break;
+ }
+ }
+ break;
case RC_CAPTION:
if (strcmp(args[0], "always") == 0 || strcmp(args[0], "splitonly") == 0)
{