mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
save history when stoping now
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16312 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -842,6 +842,15 @@ static unsigned char console_fnkey_pressed(int i)
|
||||
return CC_REDISPLAY;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_console_save_history(void)
|
||||
{
|
||||
#ifdef SWITCH_HAVE_LIBEDIT
|
||||
history(myhistory, &ev, H_SAVE, hfile);
|
||||
#else
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "NOT IMPLEMENTED!\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef SWITCH_HAVE_LIBEDIT
|
||||
static char prompt_str[512] = "";
|
||||
|
||||
|
Reference in New Issue
Block a user