This is a patch file for "aalib" 1.4p5. These changes were extracted from a Debian patch file. The Debian file was obtained originally from: http://ftp.debian.org/debian/pool/main/a/aalib/\ aalib_1.4p5-31.diff.gz --- aalib-1.4p5.orig/man/aafire.1 +++ aalib-1.4p5/man/aafire.1 @@ -23,10 +23,10 @@ programs. .PP All of these programs exist to demonstrate the capabilities of the aalib -library, an ascii art library. +library, an ASCII art library. .PP .B aafire -displays burning ascii art flames. +displays burning ASCII art flames. .PP .B aainfo displays information about what drivers aalib will use for the display, @@ -38,6 +38,24 @@ .PP .B aatest tests the capabilities of aalib. +.SH BUGS +Please report any bugs you find to Jan Hubicka . +.SH LICENSE +.BR aafire , +.BR aainfo , +.BR aasavefont , +and +.BR aatest +are all covered by the GNU Lesser General Public License (LGPL). .SH AUTHOR +Jan Hubicka +.PP This manual page was written by Joey Hess, for the Debian GNU/Linux system. +.SH SEE ALSO +.BR bb (1), +.BR aatv (1), +.BR aview (1), +.BR asciiview (1), +.BR aaflip (1), +.BR xaos (6). --- aalib-1.4p5.orig/src/aacurkbd.c +++ aalib-1.4p5/src/aacurkbd.c @@ -112,7 +112,7 @@ return (AA_UP); case KEY_DOWN: return (AA_DOWN); -#ifdef KEY_MOUDE +#ifdef KEY_MOUSE case KEY_MOUSE: #ifdef GPM_MOUSEDRIVER if (!__curses_usegpm) --- aalib-1.4p5.orig/src/aacurses.c +++ aalib-1.4p5/src/aacurses.c @@ -36,8 +36,14 @@ dest->supported=AA_NORMAL_MASK; #ifdef HAVE_TERMATTRS a = termattrs(); - if (a & A_DIM) + if (has_colors()) { + start_color(); + init_pair(1, COLOR_BLACK, COLOR_BLACK); dest->supported |= AA_DIM_MASK; + } else { + if (a & A_DIM) + dest->supported |= AA_DIM_MASK; + } if (a & A_BOLD) dest->supported |= AA_BOLD_MASK; if (a & A_BOLD) @@ -86,7 +92,12 @@ attrset(A_NORMAL); break; case AA_DIM: - attrset(A_DIM); + if (has_colors()) { + attrset(A_BOLD); + attron(COLOR_PAIR(1)); + } else { + attrset(A_DIM); + } break; case AA_BOLD: attrset(A_BOLD); --- aalib-1.4p5.orig/src/aalib.1.4.ver +++ aalib-1.4p5/src/aalib.1.4.ver @@ -0,0 +1,6 @@ +AA_1.4 { + global: + aa_*; save_d; mem_d; + local: + *; +}; --- aalib-1.4p5.orig/src/aalinux.c +++ aalib-1.4p5/src/aalinux.c @@ -91,7 +91,7 @@ sprintf (fname, "/dev/vcsa%i", vt); vc[0] = fopen (fname, "w+"); if (vc[0] == NULL) - vc[0] = fopen (tmp, "w"), readonly = 1; + vc[0] = fopen (fname, "w"), readonly = 1; nvcs = 1; } if (vc[0] == NULL) --- aalib-1.4p5.orig/src/aastdin.c +++ aalib-1.4p5/src/aastdin.c @@ -88,7 +88,7 @@ if (c > 0 && c < 127 && c != 127) return (c); switch (c) { -#ifdef KEY_MOUDE +#ifdef KEY_MOUSE case KEY_MOUSE: return AA_MOUSE #endif