1 | /*--------------------------------*-C-*--------------------------------------* |
1 | /*--------------------------------*-C-*--------------------------------------* |
2 | * File: screen.c |
2 | * File: screen.c |
3 | *---------------------------------------------------------------------------* |
3 | *---------------------------------------------------------------------------* |
4 | * $Id: screen.C,v 1.9 2003/12/18 02:07:12 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 |
… | |
… | |
2456 | rxvt_term::paste (const unsigned char *data, unsigned int len) |
2456 | rxvt_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); |