Bug#138993: Illegible output in xterm
Package: playmidi
Version: 2.4-3
playmidi -r currently does not display properly in any form of xterm
that I have tried. It works when used on a console. I made some changes
that get it to properly display in an xterm.
diff -ur playmidi-2.4.orig/io_ncurses.c playmidi-2.4/io_ncurses.c
--- playmidi-2.4.orig/io_ncurses.c Sat Mar 16 23:11:55 2002
+++ playmidi-2.4/io_ncurses.c Mon Mar 18 16:41:31 2002
@@ -300,15 +300,19 @@
karaoke = 0;
if (graphics) {
clear();
- attrset(A_NORMAL | A_ALTCHARSET);
+ attrset(A_NORMAL);
mvprintw(0, 0, RELEASE " by Nathan Laredo");
mvprintw(0, 40, "Now Playing:");
mvprintw(1, 40, "[P]ause [N]ext [L]ast [O]ptions");
- mvaddstr(ytxt, 0, "ÍÍÍÍÍÍÍÍÍÍÍ;");
+ mvvline(2, 12, ACS_VLINE, ytxt - 2);
+ mvhline(ytxt, 0, ACS_HLINE, 12);
+ mvaddch(ytxt, 12, ACS_LRCORNER);
mvprintw(1, 0, "00:00.0 - 00:00.0, %d track%c", ntrks,
ntrks > 1 ? 's' : ' ');
for (i = 0; i < 16; i++)
- mvprintw(i + 2, 0, "Channel %2d ³", i + 1);
+ mvprintw(i + 2, 0, "Channel %2d", i + 1);
tmp = strrchr(filename, '/');
strncpy(textbuf, (tmp == NULL ? filename : tmp + 1), COLS - 53);
attrset(A_BOLD);
Kernel: 2.4.19-pre3
glibc: 2.2.5-3
libncurses5 version: 5.2.20020112a-3
libxaw7 version: 4.1.0-13
svgalibg1 version: 1.4.3-4
xlibs version: 4.1.0-13
debconf version: 1.0.25
Seneca
seneca@slemish.com
Reply to: