comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » pasting into IDL command line: limit at 1024 characters?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pasting into IDL command line: limit at 1024 characters? [message #59071 is a reply to message #58973] Sat, 01 March 2008 11:23 Go to previous messageGo to previous message
Anthony[1] is currently offline  Anthony[1]
Messages: 20
Registered: December 2006
Junior Member
On Mar 1, 2:58 am, metachronist <rkombi...@gmail.com> wrote:
> On Mar 1, 11:56 am, metachronist <rkombi...@gmail.com> wrote:
>
>
>
>> On Feb 28, 8:46 am, pgri...@gmail.com wrote:
>
>>> Hi folks,
>
>>> has anybody noticed that there seem to be
>>> a maximum limit of about 1024 characters that you
>>> can copy into IDL's command line?
>>> I can copy more characters in any other xterm
>>> window I happen to have open, but if IDL is
>>> running, it doesn't like more than 1024 characters
>>> to be pasted into it.
>
>>> For example, if I try to paste this into the xterm where
>>> IDL is running:
>
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> a='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> b='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>>> c='dummy string that is 64 bytes long counting the line break '
>
>>> it stops around the first c=, which is about 1024 bytes worth of data.
>>> Any idea how I can increase the maximum paste size?
>>> I am running IDL on an xterm on Mac OS 10.4.11,
>>> but I remember a similar problem on Linux systems.
>>> There is no problem pasting the test lines above inot other xterm
>>> windows.
>
>>> Cheers,
>>> Paolo
>
>> Sorry, I don't know if I am being helpful or not. Are you talking
>> about scrollback option in xterm? If so, you can set that by the
>> savelines option in your .Xdefaults file.
>> Hth,
>> /rk
>
> This might be helpful? Not sure..http://tldp.org/HOWTO/Keyboard-and-Console-HOWTO-18.ht ml

Hi Paolo,

I don't have a solution but I've noticed the same thing. I've been
sending commands from Python to IDL by launching IDL as a child
process within Python (using Pexpect). I've found limits of 1024
bytes for sending a single line, but 2048 bytes if I split the line up
and send it in pieces (like pasting twice). However, using IDL from
the shell this happens:

[IDL 6.4]
IDL> x='aaaaaaaaaaaaaaaa ... aaaa [keep typing/pasting until it
refuses further input]
IDL> print,strlen(x)
4092
IDL> exit
% Internal error: buffer overrun in IDL_SFilePrintf() detected.

The paste limit seems to depend on the shell/terminal - e.g., using
Terminal on the Mac and ssh-ing into a Linux machine, I'm able to
paste the x='... command in full (4095 bytes). But using IDL on the
Mac it complains after slightly more than 1024 bytes.

But, as you say, the problem is peculiar to IDL, not the shell/
terminal in general.

Anthony
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Tabs in Workbench
Next Topic: Convenient IGRF in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:42:53 PDT 2025

Total time taken to generate the page: 0.95957 seconds