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

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.8 by pcg, Wed Dec 17 09:00:35 2003 UTC vs.
Revision 1.10 by pcg, Thu Dec 18 08:06:46 2003 UTC

1/*--------------------------------*-C-*--------------------------------------* 1/*--------------------------------*-C-*--------------------------------------*
2 * File: screen.c 2 * File: screen.c
3 *---------------------------------------------------------------------------* 3 *---------------------------------------------------------------------------*
4 * $Id: screen.C,v 1.8 2003/12/17 09:00:35 pcg Exp $ 4 * $Id: screen.C,v 1.10 2003/12/18 08:06:46 pcg Exp $
5 * 5 *
6 * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com> 6 * Copyright (c) 1997-2001 Geoff Wing <gcw@pobox.com>
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
227#if NSCREENS 227#if NSCREENS
228 swap.flags = Screen_DefaultFlags; 228 swap.flags = Screen_DefaultFlags;
229 swap.cur.row = swap.cur.col = 0; 229 swap.cur.row = swap.cur.col = 0;
230 swap.charset = 0; 230 swap.charset = 0;
231 current_screen = SECONDARY; 231 current_screen = SECONDARY;
232 rxvt_scr_cursor(aR_ SAVE); 232 rxvt_scr_cursor (this, SAVE);
233 current_screen = PRIMARY; 233 current_screen = PRIMARY;
234#endif 234#endif
235 235
236 selection.text = NULL; 236 selection.text = NULL;
237 selection.len = 0; 237 selection.len = 0;
2456rxvt_term::paste (const unsigned char *data, unsigned int len) 2456rxvt_term::paste (const unsigned char *data, unsigned int len)
2457{ 2457{
2458 unsigned int i, j, n; 2458 unsigned int i, j, n;
2459 unsigned char *ds = (unsigned char *)rxvt_malloc (PROP_SIZE); 2459 unsigned char *ds = (unsigned char *)rxvt_malloc (PROP_SIZE);
2460 2460
2461#if 0
2462 /* a paste should act like the user is typing, so check scrollTtyKeypress */
2463 ZERO_SCROLLBACK (r);
2464#endif
2465
2461 /* convert normal newline chars into common keyboard Return key sequence */ 2466 /* convert normal newline chars into common keyboard Return key sequence */
2462 for (i = 0; i < len; i += PROP_SIZE) 2467 for (i = 0; i < len; i += PROP_SIZE)
2463 { 2468 {
2464 n = min (len - i, PROP_SIZE); 2469 n = min (len - i, PROP_SIZE);
2465 MEMCPY (ds, data + i, n); 2470 MEMCPY (ds, data + i, n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines