Programs that use the libcur package (extension to AT&T's libcurses package) need to make the following changes:
Drawing Primary box characters: wcolorout(win, Bxa); cbox(win); wcolorend(win); or, wcolorout(win, Bxa); drawbox(win, y,x, height, width); wcolorend(win); Drawing Alternate box characters: wcolorout(win, Bya) cboxalt(win); wcolorend(win); or, wcolorout(win, Bya); drawbox(win, y, x, height, width); wcolorend(win);
Bxa and Bya refer to the primary and alternate attributes defined in the terminfo database.
The following macros are added in the cur01.h file:
cboxalt(win) drawboxalt(win, y,x, height, width)
Programs that do multibyte character input should do the following:
Input routine: Example: int c, count; char buf[]; extended(FALSE); /* obtain one byte at a time */ count =0; while(1){ c = wgetch(); /* get one byte at a time */ buf[count++] = c; if(count <=MB_CUR_MAX) if(mblen(buf, count) != -1) break; /* character found* / else /*Error. No character can be found */ /* Handle this case appropriately */ break; } /* buf contains the input multibyte sequence */ /* Now handle PF keys, or any escape sequence here */
The addch and waddch subroutines, addstr, waddstr, mvaddstr, and mvwaddstr subroutines, delch, wdelch, mvdelch, and mvwdelch subroutines, inch, insch, winsch, mvinsch, and mvwinsch subroutines, winch, mvinch, and mvwinch subroutines, wcwidth subroutine, wgetch subroutine.