Eric Pouech eric.pouech@orange.fr writes:
+/******************************************************************
WCLINE_SetTitle
- Sets the title to the wine console
- */
+static void WCLINE_SetTitle(const struct inner_data* data) +{
- WCHAR wbuf[256];
- if (WINECON_GetConsoleTitle(data->hConIn, wbuf, sizeof(wbuf)/sizeof(WCHAR)))
- {
char buffer[256];
WideCharToMultiByte(CP_UNIXCP, 0, wbuf, -1, buffer, sizeof(buffer),
NULL, NULL);
fputs("\033]2;", stdout);
fputs(buffer, stdout);
fputc('\a', stdout);
fflush(stdout);
- }
+}
I don't think you want to do that. You would need at least to check the terminal type, and make sure that stdout is actually going to the terminal. I'm not sure it's worth the trouble.