"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ansi.c" between
screen-4.8.0.tar.gz and screen-4.9.0.tar.gz

About: GNU screen is a screen manager with VT100/ANSI terminal emulation (multiplexing up to 10 pseudo-terminals).

ansi.c  (screen-4.8.0):ansi.c  (screen-4.9.0)
skipping to change at line 693 skipping to change at line 693
mc.image = c; mc.image = c;
mc.mbcs = 0; mc.mbcs = 0;
mc.font = '0'; mc.font = '0';
mc.fontx = 0; mc.fontx = 0;
mcp = recode_mchar(&mc, 0, UTF8); mcp = recode_mchar(&mc, 0, UTF8);
debug2("%02x %02x\n", mcp->image, mcp->font); debug2("%02x %02x\n", mcp->image, mcp->font);
c = mcp->image | mcp->font << 8; c = mcp->image | mcp->font << 8;
} }
curr->w_rend.font = 0; curr->w_rend.font = 0;
} }
# ifdef DW_CHARS
if (curr->w_encoding == UTF8 && utf8_isdouble(c))
curr->w_mbcs = 0xff;
# endif
if (curr->w_encoding == UTF8 && c >= 0x0300 && utf8_iscomb(c)) if (curr->w_encoding == UTF8 && c >= 0x0300 && utf8_iscomb(c))
{ {
int ox, oy; int ox, oy;
struct mchar omc; struct mchar omc;
ox = curr->w_x - 1; ox = curr->w_x - 1;
oy = curr->w_y; oy = curr->w_y;
if (ox < 0) if (ox < 0)
{ {
ox = curr->w_width - 1; ox = curr->w_width - 1;
skipping to change at line 731 skipping to change at line 727
if (ox >= 0) if (ox >= 0)
{ {
utf8_handle_comb(c, &omc); utf8_handle_comb(c, &omc);
MFixLine(curr, oy, &omc); MFixLine(curr, oy, &omc);
copy_mchar2mline(&omc, &curr->w_mlines[oy], ox); copy_mchar2mline(&omc, &curr->w_mlines[oy], ox);
LPutChar(&curr->w_layer, &omc, ox, oy); LPutChar(&curr->w_layer, &omc, ox, oy);
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y); LGotoPos(&curr->w_layer, curr->w_x, curr->w_y);
} }
break; break;
} }
# ifdef DW_CHARS
if (curr->w_encoding == UTF8 && utf8_isdouble(c))
curr->w_mbcs = 0xff;
# endif
font = curr->w_rend.font; font = curr->w_rend.font;
# endif # endif
# ifdef DW_CHARS # ifdef DW_CHARS
# ifdef ENCODINGS # ifdef ENCODINGS
if (font == KANA && curr->w_encoding == SJIS && curr->w_mbcs == 0) if (font == KANA && curr->w_encoding == SJIS && curr->w_mbcs == 0)
{ {
/* Lets see if it is the first byte of a kanji */ /* Lets see if it is the first byte of a kanji */
debug1("%x may be first of SJIS\n", c); debug1("%x may be first of SJIS\n", c);
if ((0x81 <= c && c <= 0x9f) || (0xe0 <= c && c <= 0xef)) if ((0x81 <= c && c <= 0x9f) || (0xe0 <= c && c <= 0xef))
{ {
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)