From da43881cd91e35267b094bab80873aa63ba4e109 Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 21 Apr 2006 00:14:25 +0000 Subject: * src/actions.h: new command sfrestore * src/actions.c (init_user_commands): new command sfrestore (cmd_sfrestore): new function --- src/actions.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index 78736b1..8f57d7c 100644 --- a/src/actions.c +++ b/src/actions.c @@ -281,6 +281,8 @@ init_user_commands() "Variable: ", arg_STRING, "Value: ", arg_REST); add_command ("shrink", cmd_shrink, 0, 0, 0); + add_command ("sfrestore", cmd_sfrestore, 1, 1, 1, + "Frames: ", arg_REST); add_command ("source", cmd_source, 1, 1, 1, "File: ", arg_REST); add_command ("sselect", cmd_sselect, 1, 1, 1, @@ -4932,6 +4934,78 @@ cmd_sfdump (int interactively, struct cmdarg **args) return ret; } +cmdret * +cmd_sfrestore (int interactively, struct cmdarg **args) +{ + int out_of_screen = 0; + int number_of_frames = 0; + int j; + long x; + char *dup; + char *token; + char *ptr; + struct sbuf *buffer[num_screens]; + + /* initialize frameset-buffer for each screen */ + for (j=0; j