~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix minor breakage on Windows as a result of term_mouse revamp.
[sgt/putty]
/
console.c
diff --git
a/console.c
b/console.c
index
c9284b1
..
27366de
100644
(file)
--- a/
console.c
+++ b/
console.c
@@
-15,6
+15,8
@@
int console_batch_mode = FALSE;
int console_batch_mode = FALSE;
+static void *console_logctx = NULL;
+
/*
* Clean up and exit.
*/
/*
* Clean up and exit.
*/
@@
-259,8
+261,15
@@
void old_keyfile_warning(void)
fputs(message, stderr);
}
fputs(message, stderr);
}
+void console_provide_logctx(void *logctx)
+{
+ console_logctx = logctx;
+}
+
void logevent(void *frontend, char *string)
{
void logevent(void *frontend, char *string)
{
+ if (console_logctx)
+ log_eventlog(console_logctx, string);
}
int console_get_line(const char *prompt, char *str,
}
int console_get_line(const char *prompt, char *str,