ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.424 by root, Tue Nov 4 23:46:22 2008 UTC vs.
Revision 1.425 by root, Wed Nov 5 12:28:15 2008 UTC

3584 static const struct 3584 static const struct
3585 { 3585 {
3586 const int argval; 3586 const int argval;
3587 const unsigned long bit; 3587 const unsigned long bit;
3588 } argtopriv[] = { 3588 } argtopriv[] = {
3589 { 1, PrivMode_aplCUR }, 3589 { 1, PrivMode_aplCUR }, // DECCKM
3590 { 2, PrivMode_vt52 }, 3590 { 2, PrivMode_vt52 },
3591 { 3, PrivMode_132 }, 3591 { 3, PrivMode_132 }, // DECCOLM
3592 { 4, PrivMode_smoothScroll }, 3592 { 4, PrivMode_smoothScroll }, // DECSCLM
3593 { 5, PrivMode_rVideo }, 3593 { 5, PrivMode_rVideo }, // DECSCNM
3594 { 6, PrivMode_relOrigin }, 3594 { 6, PrivMode_relOrigin }, // DECOM
3595 { 7, PrivMode_Autowrap }, 3595 { 7, PrivMode_Autowrap }, // DECAWM
3596 // 8, bi-directional support mode 3596 // 8, auto-repeat keys // DECARM
3597 { 9, PrivMode_MouseX10 }, 3597 { 9, PrivMode_MouseX10 },
3598 // 18, 19 printing-related 3598 // 18, 19 printing-related
3599 { 25, PrivMode_VisibleCursor }, 3599 { 25, PrivMode_VisibleCursor }, // cnorm/cvvis/civis
3600#ifdef scrollBar_esc 3600#ifdef scrollBar_esc
3601 { scrollBar_esc, PrivMode_scrollBar }, 3601 { scrollBar_esc, PrivMode_scrollBar },
3602#endif 3602#endif
3603 { 35, PrivMode_ShiftKeys }, // rxvt extension 3603 { 35, PrivMode_ShiftKeys }, // rxvt extension
3604 // 38, tektronix mode // DECTEK
3604 { 40, PrivMode_132OK }, 3605 { 40, PrivMode_132OK },
3605 // 41 xterm more fixes NYI 3606 // 41 xterm more fixes NYI
3606 // 45 margin bell NYI 3607 // 45 margin bell NYI
3607 // 46 start logging 3608 // 46 start logging
3608 { 47, PrivMode_Screen }, 3609 { 47, PrivMode_Screen },
3609 { 66, PrivMode_aplKP }, 3610 { 66, PrivMode_aplKP }, // DECPAM/DECPNM
3610#ifndef NO_BACKSPACE_KEY 3611#ifndef NO_BACKSPACE_KEY
3611 { 67, PrivMode_BackSpace }, 3612 { 67, PrivMode_BackSpace }, // DECBKM
3612#endif 3613#endif
3613 { 1000, PrivMode_MouseX11 }, 3614 { 1000, PrivMode_MouseX11 },
3614 { 1002, PrivMode_MouseBtnEvent }, 3615 { 1002, PrivMode_MouseBtnEvent },
3615 { 1003, PrivMode_MouseAnyEvent }, 3616 { 1003, PrivMode_MouseAnyEvent },
3616 { 1010, PrivMode_TtyOutputInh }, // rxvt extension 3617 { 1010, PrivMode_TtyOutputInh }, // rxvt extension
3678 */ 3679 */
3679 set_privmode (PrivMode_vt52, 1); 3680 set_privmode (PrivMode_vt52, 1);
3680 break; 3681 break;
3681 case 3: /* 80/132 */ 3682 case 3: /* 80/132 */
3682 if (priv_modes & PrivMode_132OK) 3683 if (priv_modes & PrivMode_132OK)
3683 {
3684 scr_poweron ();
3685 set_widthheight (((state ? 132 : 80) * fwidth), 24 * fheight); 3684 set_widthheight ((state ? 132 : 80) * fwidth, 24 * fheight);
3686 }
3687 break; 3685 break;
3688 case 4: /* smooth scrolling */ 3686 case 4: /* smooth scrolling */
3689 set_option (Opt_jumpScroll, !state); 3687 set_option (Opt_jumpScroll, !state);
3690 break; 3688 break;
3691 case 5: /* reverse video */ 3689 case 5: /* reverse video */
3733 priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent; 3731 priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent;
3734 vt_emask_mouse = PointerMotionMask; 3732 vt_emask_mouse = PointerMotionMask;
3735 } 3733 }
3736 else 3734 else
3737 vt_emask_mouse = NoEventMask; 3735 vt_emask_mouse = NoEventMask;
3736
3738 vt_select_input (); 3737 vt_select_input ();
3739 break; 3738 break;
3740 case 1010: /* scroll to bottom on TTY output inhibit */ 3739 case 1010: /* scroll to bottom on TTY output inhibit */
3741 set_option (Opt_scrollTtyOutput, !state); 3740 set_option (Opt_scrollTtyOutput, !state);
3742 break; 3741 break;
3745 break; 3744 break;
3746 case 1047: /* secondary screen w/ clearing last */ 3745 case 1047: /* secondary screen w/ clearing last */
3747 if (option (Opt_secondaryScreen)) 3746 if (option (Opt_secondaryScreen))
3748 if (current_screen != PRIMARY) 3747 if (current_screen != PRIMARY)
3749 scr_erase_screen (2); 3748 scr_erase_screen (2);
3749
3750 scr_change_screen (state); 3750 scr_change_screen (state);
3751 break; 3751 break;
3752 case 1049: /* secondary screen w/ clearing first */ 3752 case 1049: /* secondary screen w/ clearing first */
3753 scr_change_screen (state); 3753 scr_change_screen (state);
3754 if (option (Opt_secondaryScreen)) 3754 if (option (Opt_secondaryScreen))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines