Skip to content

Commit 126355d

Browse files
committed
Set window title.
1 parent 01e9f1d commit 126355d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doomgeneric_ascii.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,9 @@ int DG_GetKey(int *const pressed, unsigned char *const doomKey)
574574
return 1;
575575
}
576576

577-
void DG_SetWindowTitle(const char *title)
577+
void DG_SetWindowTitle(const char *const title)
578578
{
579-
(void)title;
579+
CALL_STDOUT(fputs("\033]2;", stdout), "DG_SetWindowTitle: fputs error %d");
580+
CALL_STDOUT(fputs(title, stdout), "DG_SetWindowTitle: fputs error %d");
581+
CALL_STDOUT(fputs("\033\\", stdout), "DG_SetWindowTitle: fputs error %d");
580582
}

0 commit comments

Comments
 (0)