Mon Apr 29 10:48:33 2002 Michael Jennings (mej)
Disable the screen dump escape sequence and implement a save_buff() script function instead. SVN revision: 6191
This commit is contained in:
parent
ba90de6336
commit
c9ef7c9002
|
@ -4615,3 +4615,8 @@ Sun Apr 28 10:06:32 2002 Michael Jennings (mej)
|
|||
|
||||
Don't require the new libast just yet....
|
||||
----------------------------------------------------------------------
|
||||
Mon Apr 29 10:48:33 2002 Michael Jennings (mej)
|
||||
|
||||
Disable the screen dump escape sequence and implement a save_buff()
|
||||
script function instead.
|
||||
----------------------------------------------------------------------
|
||||
|
|
16
src/script.c
16
src/script.c
|
@ -52,6 +52,7 @@ static eterm_script_handler_t script_handlers[] =
|
|||
{ "paste", script_handler_paste },
|
||||
{ "quit", script_handler_exit },
|
||||
{ "save", script_handler_save },
|
||||
{ "save_buff", script_handler_save_buff },
|
||||
{ "scroll", script_handler_scroll },
|
||||
{ "search", script_handler_search },
|
||||
{ "spawn", script_handler_spawn },
|
||||
|
@ -290,6 +291,21 @@ script_handler_save(char **params)
|
|||
}
|
||||
}
|
||||
|
||||
/* save_buff(): Dump the scrollback buffer to a file
|
||||
*
|
||||
* Syntax: save_buff(<filename>)
|
||||
*
|
||||
* Dumps the entire contents of the screen buffer into
|
||||
* the specified file.
|
||||
*/
|
||||
void
|
||||
script_handler_save_buff(char **params)
|
||||
{
|
||||
if (params && *params) {
|
||||
scr_dump_to_file(params[0]);
|
||||
}
|
||||
}
|
||||
|
||||
/* scroll(): Scroll backward or forward in the scrollback buffer
|
||||
*
|
||||
* Syntax: scroll(N) or scroll(Nl) -- Scroll N lines
|
||||
|
|
|
@ -49,6 +49,7 @@ extern void script_handler_exit(char **);
|
|||
extern void script_handler_kill(char **);
|
||||
extern void script_handler_paste(char **);
|
||||
extern void script_handler_save(char **);
|
||||
extern void script_handler_save_buff(char **);
|
||||
extern void script_handler_scroll(char **);
|
||||
extern void script_handler_search(char **);
|
||||
extern void script_handler_spawn(char **);
|
||||
|
|
|
@ -2352,11 +2352,13 @@ xterm_seq(int op, const char *str)
|
|||
#endif
|
||||
break;
|
||||
case XTerm_DumpScreen:
|
||||
#if 0
|
||||
nstr = (char *) strsep(&tnstr, ";");
|
||||
if (nstr && *nstr) {
|
||||
scr_dump_to_file(nstr);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case XTerm_logfile:
|
||||
nstr = (char *) strsep(&tnstr, ";");
|
||||
if (nstr && *nstr && BOOL_OPT_ISTRUE(nstr)) {
|
||||
|
|
Loading…
Reference in New Issue