… | |
… | |
3400 | break; |
3400 | break; |
3401 | case URxvt_Color_IT: |
3401 | case URxvt_Color_IT: |
3402 | process_color_seq (op, Color_IT, str, resp); |
3402 | process_color_seq (op, Color_IT, str, resp); |
3403 | break; |
3403 | break; |
3404 | #endif |
3404 | #endif |
|
|
3405 | case URxvt_Color_border: |
|
|
3406 | process_color_seq (op, Color_border, str, resp); |
|
|
3407 | break; |
3405 | #if ENABLE_TRANSPARENCY |
3408 | #if ENABLE_TRANSPARENCY |
3406 | case URxvt_Color_tint: |
3409 | case URxvt_Color_tint: |
3407 | process_color_seq (op, Color_tint, str, resp); |
3410 | process_color_seq (op, Color_tint, str, resp); |
3408 | { |
3411 | { |
3409 | bool changed = false; |
3412 | bool changed = false; |
… | |
… | |
3584 | static const struct |
3587 | static const struct |
3585 | { |
3588 | { |
3586 | const int argval; |
3589 | const int argval; |
3587 | const unsigned long bit; |
3590 | const unsigned long bit; |
3588 | } argtopriv[] = { |
3591 | } argtopriv[] = { |
3589 | { 1, PrivMode_aplCUR }, |
3592 | { 1, PrivMode_aplCUR }, // DECCKM |
3590 | { 2, PrivMode_vt52 }, |
3593 | { 2, PrivMode_vt52 }, |
3591 | { 3, PrivMode_132 }, |
3594 | { 3, PrivMode_132 }, // DECCOLM |
3592 | { 4, PrivMode_smoothScroll }, |
3595 | { 4, PrivMode_smoothScroll }, // DECSCLM |
3593 | { 5, PrivMode_rVideo }, |
3596 | { 5, PrivMode_rVideo }, // DECSCNM |
3594 | { 6, PrivMode_relOrigin }, |
3597 | { 6, PrivMode_relOrigin }, // DECOM |
3595 | { 7, PrivMode_Autowrap }, |
3598 | { 7, PrivMode_Autowrap }, // DECAWM |
3596 | // 8, bi-directional support mode |
3599 | // 8, auto-repeat keys // DECARM |
3597 | { 9, PrivMode_MouseX10 }, |
3600 | { 9, PrivMode_MouseX10 }, |
3598 | // 18, 19 printing-related |
3601 | // 18 end FF to printer after print screen |
|
|
3602 | // 19 Print screen prints full screen/scorll region |
3599 | { 25, PrivMode_VisibleCursor }, |
3603 | { 25, PrivMode_VisibleCursor }, // cnorm/cvvis/civis |
3600 | #ifdef scrollBar_esc |
3604 | #ifdef scrollBar_esc |
3601 | { scrollBar_esc, PrivMode_scrollBar }, |
3605 | { scrollBar_esc, PrivMode_scrollBar }, |
3602 | #endif |
3606 | #endif |
3603 | { 35, PrivMode_ShiftKeys }, // rxvt extension |
3607 | { 35, PrivMode_ShiftKeys }, // rxvt extension |
|
|
3608 | // 38, tektronix mode // DECTEK |
3604 | { 40, PrivMode_132OK }, |
3609 | { 40, PrivMode_132OK }, |
3605 | // 41 xterm more fixes NYI |
3610 | // 41 xterm more fixes NYI |
3606 | // 45 margin bell NYI |
3611 | // 45 margin bell NYI |
3607 | // 46 start logging |
3612 | // 46 start logging |
3608 | { 47, PrivMode_Screen }, |
3613 | { 47, PrivMode_Screen }, |
3609 | { 66, PrivMode_aplKP }, |
3614 | { 66, PrivMode_aplKP }, // DECPAM/DECPNM |
3610 | #ifndef NO_BACKSPACE_KEY |
3615 | #ifndef NO_BACKSPACE_KEY |
3611 | { 67, PrivMode_BackSpace }, |
3616 | { 67, PrivMode_BackSpace }, // DECBKM |
3612 | #endif |
3617 | #endif |
3613 | { 1000, PrivMode_MouseX11 }, |
3618 | { 1000, PrivMode_MouseX11 }, |
3614 | { 1002, PrivMode_MouseBtnEvent }, |
3619 | { 1002, PrivMode_MouseBtnEvent }, |
3615 | { 1003, PrivMode_MouseAnyEvent }, |
3620 | { 1003, PrivMode_MouseAnyEvent }, |
3616 | { 1010, PrivMode_TtyOutputInh }, // rxvt extension |
3621 | { 1010, PrivMode_TtyOutputInh }, // rxvt extension |
… | |
… | |
3655 | |
3660 | |
3656 | scr_touch (true); |
3661 | scr_touch (true); |
3657 | break; |
3662 | break; |
3658 | #endif |
3663 | #endif |
3659 | case 1048: /* alternative cursor save */ |
3664 | case 1048: /* alternative cursor save */ |
3660 | case 1049: |
|
|
3661 | if (option (Opt_secondaryScreen)) |
3665 | if (option (Opt_secondaryScreen)) |
3662 | if (mode == 0) |
3666 | if (mode == 0) |
3663 | scr_cursor (RESTORE); |
3667 | scr_cursor (RESTORE); |
3664 | else if (mode == 1) |
3668 | else if (mode == 1) |
3665 | scr_cursor (SAVE); |
3669 | scr_cursor (SAVE); |
… | |
… | |
3678 | */ |
3682 | */ |
3679 | set_privmode (PrivMode_vt52, 1); |
3683 | set_privmode (PrivMode_vt52, 1); |
3680 | break; |
3684 | break; |
3681 | case 3: /* 80/132 */ |
3685 | case 3: /* 80/132 */ |
3682 | if (priv_modes & PrivMode_132OK) |
3686 | if (priv_modes & PrivMode_132OK) |
3683 | { |
|
|
3684 | scr_poweron (); |
|
|
3685 | set_widthheight (((state ? 132 : 80) * fwidth), 24 * fheight); |
3687 | set_widthheight ((state ? 132 : 80) * fwidth, 24 * fheight); |
3686 | } |
|
|
3687 | break; |
3688 | break; |
3688 | case 4: /* smooth scrolling */ |
3689 | case 4: /* smooth scrolling */ |
3689 | set_option (Opt_jumpScroll, !state); |
3690 | set_option (Opt_jumpScroll, !state); |
3690 | break; |
3691 | break; |
3691 | case 5: /* reverse video */ |
3692 | case 5: /* reverse video */ |
… | |
… | |
3733 | priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent; |
3734 | priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent; |
3734 | vt_emask_mouse = PointerMotionMask; |
3735 | vt_emask_mouse = PointerMotionMask; |
3735 | } |
3736 | } |
3736 | else |
3737 | else |
3737 | vt_emask_mouse = NoEventMask; |
3738 | vt_emask_mouse = NoEventMask; |
|
|
3739 | |
3738 | vt_select_input (); |
3740 | vt_select_input (); |
3739 | break; |
3741 | break; |
3740 | case 1010: /* scroll to bottom on TTY output inhibit */ |
3742 | case 1010: /* scroll to bottom on TTY output inhibit */ |
3741 | set_option (Opt_scrollTtyOutput, !state); |
3743 | set_option (Opt_scrollTtyOutput, !state); |
3742 | break; |
3744 | break; |
3743 | case 1011: /* scroll to bottom on key press */ |
3745 | case 1011: /* scroll to bottom on key press */ |
3744 | set_option (Opt_scrollTtyKeypress, state); |
3746 | set_option (Opt_scrollTtyKeypress, state); |
3745 | break; |
3747 | break; |
3746 | case 1047: /* secondary screen w/ clearing last */ |
3748 | case 1047: /* secondary screen w/ clearing last */ |
3747 | if (option (Opt_secondaryScreen)) |
3749 | if (option (Opt_secondaryScreen)) |
3748 | if (current_screen != PRIMARY) |
3750 | if (!state) |
3749 | scr_erase_screen (2); |
3751 | scr_erase_screen (2); |
|
|
3752 | |
3750 | scr_change_screen (state); |
3753 | scr_change_screen (state); |
3751 | break; |
3754 | break; |
3752 | case 1049: /* secondary screen w/ clearing first */ |
3755 | case 1049: /* secondary screen w/ clearing first */ |
|
|
3756 | if (option (Opt_secondaryScreen)) |
|
|
3757 | if (state) |
|
|
3758 | scr_cursor (SAVE); |
|
|
3759 | |
3753 | scr_change_screen (state); |
3760 | scr_change_screen (state); |
|
|
3761 | |
3754 | if (option (Opt_secondaryScreen)) |
3762 | if (option (Opt_secondaryScreen)) |
3755 | if (current_screen != PRIMARY) |
3763 | if (state) |
3756 | scr_erase_screen (2); |
3764 | scr_erase_screen (2); |
|
|
3765 | else |
|
|
3766 | scr_cursor (RESTORE); |
3757 | break; |
3767 | break; |
3758 | default: |
3768 | default: |
3759 | break; |
3769 | break; |
3760 | } |
3770 | } |
3761 | } |
3771 | } |