… | |
… | |
1312 | dDisp; |
1312 | dDisp; |
1313 | |
1313 | |
1314 | SET_R (this); |
1314 | SET_R (this); |
1315 | SET_LOCALE (locale); |
1315 | SET_LOCALE (locale); |
1316 | |
1316 | |
1317 | #if defined(CURSOR_BLINK) |
|
|
1318 | if (OPTION (Opt_cursorBlink) && ev.type == KeyPress) |
|
|
1319 | { |
|
|
1320 | if (hidden_cursor) |
|
|
1321 | { |
|
|
1322 | hidden_cursor = 0; |
|
|
1323 | want_refresh = 1; |
|
|
1324 | } |
|
|
1325 | |
|
|
1326 | cursor_blink_ev.start (NOW + BLINK_INTERVAL); |
|
|
1327 | } |
|
|
1328 | #endif |
|
|
1329 | |
|
|
1330 | #if defined(POINTER_BLANK) |
|
|
1331 | if (OPTION (Opt_pointerBlank) && pointerBlankDelay > 0) |
|
|
1332 | { |
|
|
1333 | if (ev.type == MotionNotify |
|
|
1334 | || ev.type == ButtonPress |
|
|
1335 | || ev.type == ButtonRelease) |
|
|
1336 | if (hidden_pointer) |
|
|
1337 | pointer_unblank (); |
|
|
1338 | |
|
|
1339 | if (ev.type == KeyPress && hidden_pointer == 0) |
|
|
1340 | pointer_blank (); |
|
|
1341 | } |
|
|
1342 | #endif |
|
|
1343 | |
|
|
1344 | Window unused_root, unused_child; |
1317 | Window unused_root, unused_child; |
1345 | int unused_root_x, unused_root_y; |
1318 | int unused_root_x, unused_root_y; |
1346 | unsigned int unused_mask; |
1319 | unsigned int unused_mask; |
1347 | |
1320 | |
1348 | switch (ev.type) |
1321 | switch (ev.type) |
… | |
… | |
1378 | && ((ks >= 0x40 && ks <= 0x5f) |
1351 | && ((ks >= 0x40 && ks <= 0x5f) |
1379 | || (ks >= 0x61 && ks <= 0x7f))) |
1352 | || (ks >= 0x61 && ks <= 0x7f))) |
1380 | { |
1353 | { |
1381 | iso14755buf = ISO_14755_51 | 0x2400 | (ks & 0x1f); |
1354 | iso14755buf = ISO_14755_51 | 0x2400 | (ks & 0x1f); |
1382 | commit_iso14755 (); |
1355 | commit_iso14755 (); |
1383 | return; // case-break; |
1356 | goto skip_switch; |
1384 | } |
1357 | } |
1385 | |
1358 | |
1386 | for (unsigned short *i = iso14755_symtab; i[0]; i+= 2) |
1359 | for (unsigned short *i = iso14755_symtab; i[0]; i+= 2) |
1387 | if (i[0] == ks) |
1360 | if (i[0] == ks) |
1388 | { |
1361 | { |
1389 | iso14755buf = ISO_14755_51 | i[1]; |
1362 | iso14755buf = ISO_14755_51 | i[1]; |
1390 | commit_iso14755 (); |
1363 | commit_iso14755 (); |
1391 | return; // case-break; |
1364 | goto skip_switch; |
1392 | } |
1365 | } |
1393 | |
1366 | |
1394 | scr_bell (); |
1367 | scr_bell (); |
1395 | # endif |
1368 | # endif |
1396 | iso14755buf = 0; |
1369 | iso14755buf = 0; |
… | |
… | |
1742 | refresh_limit = 0; |
1715 | refresh_limit = 0; |
1743 | scrollbar_show (1); |
1716 | scrollbar_show (1); |
1744 | } |
1717 | } |
1745 | break; |
1718 | break; |
1746 | } |
1719 | } |
|
|
1720 | |
|
|
1721 | skip_switch: ; |
|
|
1722 | |
|
|
1723 | #if defined(CURSOR_BLINK) |
|
|
1724 | if (OPTION (Opt_cursorBlink) && ev.type == KeyPress) |
|
|
1725 | { |
|
|
1726 | if (hidden_cursor) |
|
|
1727 | { |
|
|
1728 | hidden_cursor = 0; |
|
|
1729 | want_refresh = 1; |
|
|
1730 | } |
|
|
1731 | |
|
|
1732 | cursor_blink_ev.start (NOW + BLINK_INTERVAL); |
|
|
1733 | } |
|
|
1734 | #endif |
|
|
1735 | |
|
|
1736 | #if defined(POINTER_BLANK) |
|
|
1737 | if (OPTION (Opt_pointerBlank) && pointerBlankDelay > 0) |
|
|
1738 | { |
|
|
1739 | if (ev.type == MotionNotify |
|
|
1740 | || ev.type == ButtonPress |
|
|
1741 | || ev.type == ButtonRelease) |
|
|
1742 | if (hidden_pointer) |
|
|
1743 | pointer_unblank (); |
|
|
1744 | |
|
|
1745 | if (ev.type == KeyPress && hidden_pointer == 0) |
|
|
1746 | pointer_blank (); |
|
|
1747 | } |
|
|
1748 | #endif |
1747 | } |
1749 | } |
1748 | |
1750 | |
1749 | void |
1751 | void |
1750 | rxvt_term::focus_in () |
1752 | rxvt_term::focus_in () |
1751 | { |
1753 | { |
… | |
… | |
4153 | /* extra handling for values with state unkept */ |
4155 | /* extra handling for values with state unkept */ |
4154 | switch (arg[i]) |
4156 | switch (arg[i]) |
4155 | { |
4157 | { |
4156 | #if ENABLE_STYLES |
4158 | #if ENABLE_STYLES |
4157 | case 1021: |
4159 | case 1021: |
4158 | if (mode) |
4160 | set_option (Opt_intensityStyles, mode); |
4159 | SET_OPTION (Opt_intensityStyles); |
|
|
4160 | else |
|
|
4161 | CLR_OPTION (Opt_intensityStyles); |
|
|
4162 | |
4161 | |
4163 | scr_touch (true); |
4162 | scr_touch (true); |
4164 | break; |
4163 | break; |
4165 | #endif |
4164 | #endif |
4166 | case 1048: /* alternative cursor save */ |
4165 | case 1048: /* alternative cursor save */ |
… | |
… | |
4188 | case 3: /* 80/132 */ |
4187 | case 3: /* 80/132 */ |
4189 | if (priv_modes & PrivMode_132OK) |
4188 | if (priv_modes & PrivMode_132OK) |
4190 | set_widthheight (((state ? 132 : 80) * fwidth), height); |
4189 | set_widthheight (((state ? 132 : 80) * fwidth), height); |
4191 | break; |
4190 | break; |
4192 | case 4: /* smooth scrolling */ |
4191 | case 4: /* smooth scrolling */ |
4193 | if (!state) |
4192 | set_option (Opt_jumpScroll, !state); |
4194 | SET_OPTION (Opt_jumpScroll); |
|
|
4195 | else |
|
|
4196 | CLR_OPTION (Opt_jumpScroll); |
|
|
4197 | break; |
4193 | break; |
4198 | case 5: /* reverse video */ |
4194 | case 5: /* reverse video */ |
4199 | scr_rvideo_mode (state); |
4195 | scr_rvideo_mode (state); |
4200 | break; |
4196 | break; |
4201 | case 6: /* relative/absolute origins */ |
4197 | case 6: /* relative/absolute origins */ |
… | |
… | |
4242 | #if 0 |
4238 | #if 0 |
4243 | case 1001: |
4239 | case 1001: |
4244 | break; /* X11 mouse highlighting */ |
4240 | break; /* X11 mouse highlighting */ |
4245 | #endif |
4241 | #endif |
4246 | case 1010: /* scroll to bottom on TTY output inhibit */ |
4242 | case 1010: /* scroll to bottom on TTY output inhibit */ |
4247 | if (!state) |
4243 | set_option (Opt_scrollTtyOutput, !state); |
4248 | SET_OPTION (Opt_scrollTtyOutput); |
|
|
4249 | else |
|
|
4250 | CLR_OPTION (Opt_scrollTtyOutput); |
|
|
4251 | break; |
4244 | break; |
4252 | case 1011: /* scroll to bottom on key press */ |
4245 | case 1011: /* scroll to bottom on key press */ |
4253 | if (state) |
4246 | set_option (Opt_scrollTtyKeypress, state); |
4254 | SET_OPTION (Opt_scrollTtyKeypress); |
|
|
4255 | else |
|
|
4256 | CLR_OPTION (Opt_scrollTtyKeypress); |
|
|
4257 | break; |
4247 | break; |
4258 | case 1047: /* secondary screen w/ clearing last */ |
4248 | case 1047: /* secondary screen w/ clearing last */ |
4259 | if (OPTION (Opt_secondaryScreen)) |
4249 | if (OPTION (Opt_secondaryScreen)) |
4260 | if (current_screen != PRIMARY) |
4250 | if (current_screen != PRIMARY) |
4261 | scr_erase_screen (2); |
4251 | scr_erase_screen (2); |