Skip to content

Commit

Permalink
Set window title.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Nov 18, 2024
1 parent 01e9f1d commit 126355d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doomgeneric_ascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ int DG_GetKey(int *const pressed, unsigned char *const doomKey)
return 1;
}

void DG_SetWindowTitle(const char *title)
void DG_SetWindowTitle(const char *const title)
{
(void)title;
CALL_STDOUT(fputs("\033]2;", stdout), "DG_SetWindowTitle: fputs error %d");
CALL_STDOUT(fputs(title, stdout), "DG_SetWindowTitle: fputs error %d");
CALL_STDOUT(fputs("\033\\", stdout), "DG_SetWindowTitle: fputs error %d");
}

0 comments on commit 126355d

Please sign in to comment.