Skip to content

Commit 0e46432

Browse files
committed
Release v1.3.1. Rework tglutil_set_window_title.
1 parent 3dcbdb6 commit 0e46432

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

termgl.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,14 +1212,9 @@ int tglutil_set_console_size(const unsigned col, const unsigned row)
12121212

12131213
int tglutil_set_window_title(const char *title)
12141214
{
1215-
/* Allegedly Windows supports the \033]2;Pt\033\\ OSC sequence, but it does not work. */
1216-
#ifdef __unix__
12171215
CALL_STDOUT(fputs("\033]2;", stdout), -1);
12181216
CALL_STDOUT(fputs(title, stdout), -1);
12191217
CALL_STDOUT(fputs("\033\\", stdout), -1);
1220-
#else /* defined(TGL_OS_WINDOWS) */
1221-
WINDOWS_CALL(!SetConsoleTitle(title), -1);
1222-
#endif
12231218
return 0;
12241219
}
12251220

termgl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@ int tglutil_set_console_size(unsigned col, unsigned row);
331331
/**
332332
* Attempts to set window title
333333
* @return 0 on lack of errors, -1 on failure
334-
* On failure, errno is set to value specified by:
335-
* UNIX: https://man7.org/linux/man-pages/man3/fputc.3p.html#ERRORS
336-
* Windows: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes
334+
* On failure, errno is set to value specified by: https://man7.org/linux/man-pages/man3/fputc.3p.html#ERRORS
337335
*/
338336
int tglutil_set_window_title(const char *title);
339337

0 commit comments

Comments
 (0)