1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: command.c |
2 | * File: command.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: command.C,v 1.31 2004/01/29 23:26:01 pcg Exp $ |
4 | * $Id: command.C,v 1.33 2004/01/30 18:12:17 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
1474 | if ((ev->xmotion.time - R->MEvent.time) > MOUSE_THRESHOLD) { |
1474 | if ((ev->xmotion.time - R->MEvent.time) > MOUSE_THRESHOLD) { |
1475 | #endif |
1475 | #endif |
1476 | R->selection_extend ((ev->xbutton.x), (ev->xbutton.y), |
1476 | R->selection_extend ((ev->xbutton.x), (ev->xbutton.y), |
1477 | (ev->xbutton.state & Button3Mask) ? 2 : 0); |
1477 | (ev->xbutton.state & Button3Mask) ? 2 : 0); |
1478 | #ifdef SELECTION_SCROLLING |
1478 | #ifdef SELECTION_SCROLLING |
1479 | if (ev->xbutton.y<R->TermWin.int_bwidth || |
1479 | if (ev->xbutton.y < R->TermWin.int_bwidth |
1480 | Pixel2Row(ev->xbutton.y)>(R->TermWin.nrow-1)) { |
1480 | || Pixel2Row(ev->xbutton.y) > (R->TermWin.nrow-1)) { |
1481 | int dist; |
1481 | int dist; |
1482 | |
1482 | |
1483 | R->pending_scroll_selection=1; |
1483 | R->pending_scroll_selection=1; |
1484 | |
1484 | |
1485 | /* don't clobber the current delay if we are |
1485 | /* don't clobber the current delay if we are |
… | |
… | |
3085 | #endif |
3085 | #endif |
3086 | { 1000, PrivMode_MouseX11 }, |
3086 | { 1000, PrivMode_MouseX11 }, |
3087 | { 1010, PrivMode_TtyOutputInh }, |
3087 | { 1010, PrivMode_TtyOutputInh }, |
3088 | { 1011, PrivMode_Keypress }, |
3088 | { 1011, PrivMode_Keypress }, |
3089 | { 1047, PrivMode_Screen }, |
3089 | { 1047, PrivMode_Screen }, |
|
|
3090 | { 1049, PrivMode_Screen }, /* xterm extension, not fully implemented */ |
3090 | }; |
3091 | }; |
3091 | |
3092 | |
3092 | if (nargs == 0) |
3093 | if (nargs == 0) |
3093 | return; |
3094 | return; |
3094 | |
3095 | |
… | |
… | |
3201 | R->Options |= Opt_scrollTtyKeypress; |
3202 | R->Options |= Opt_scrollTtyKeypress; |
3202 | else |
3203 | else |
3203 | R->Options &= ~Opt_scrollTtyKeypress; |
3204 | R->Options &= ~Opt_scrollTtyKeypress; |
3204 | break; |
3205 | break; |
3205 | case 1047: /* secondary screen w/ clearing */ |
3206 | case 1047: /* secondary screen w/ clearing */ |
|
|
3207 | case 1049: /* better secondary screen w/ clearing, but not fully implemented */ |
3206 | if (R->current_screen != PRIMARY) |
3208 | if (R->current_screen != PRIMARY) |
3207 | R->scr_erase_screen (2); |
3209 | R->scr_erase_screen (2); |
3208 | rxvt_scr_change_screen(aR_ state); |
3210 | rxvt_scr_change_screen(aR_ state); |
3209 | /* FALLTHROUGH */ |
3211 | /* FALLTHROUGH */ |
3210 | default: |
3212 | default: |