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:
Anthony Minessale
2010-01-14 21:00:32 +00:00
parent 99b45eb1fb
commit f4a50a5e91
5 changed files with 29 additions and 1 deletions

View File

@@ -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] = "";