Skip to content
Snippets Groups Projects
Commit 904f180e authored by deuce's avatar deuce
Browse files

Force a cursor position update before playing ANSI music. Since ANSI

music is usually played in the foreground, the cursor could remain in the
wrong position for extended periods of time.
parent e2169590
Branches
Tags
No related merge requests found
......@@ -1463,8 +1463,15 @@ char *cterm_write(unsigned char *buf, int buflen, char *retbuf, size_t retsize,
}
}
else if (cterm.music) {
if(ch[0]==14)
if(ch[0]==14) {
hold_update=0;
puttext_can_move=0;
gotoxy(wherex(),wherey());
_setcursortype(cterm.cursor);
hold_update=1;
puttext_can_move=1;
play_music();
}
else {
if(strchr(musicchars,ch[0])!=NULL)
strcat(cterm.musicbuf,ch);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment