1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-09 07:13:43 -05:00

Fix "-v" in the Windows console utilities (plink, pscp, psftp).

I'm not convinced I've done this the right way (I've introduced a static for
logctx in console.c) but it will do for now.

[originally from svn r2674]
This commit is contained in:
Jacob Nevins
2003-01-21 19:18:06 +00:00
parent 30347e5313
commit 36f133b374
5 changed files with 13 additions and 0 deletions

View File

@ -15,6 +15,8 @@
int console_batch_mode = FALSE;
static void *console_logctx = NULL;
/*
* Clean up and exit.
*/
@ -259,8 +261,15 @@ void old_keyfile_warning(void)
fputs(message, stderr);
}
void console_provide_logctx(void *logctx)
{
console_logctx = logctx;
}
void logevent(void *frontend, char *string)
{
if (console_logctx)
log_eventlog(console_logctx, string);
}
int console_get_line(const char *prompt, char *str,