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 
Switch to threaded view of this topic Create a new topic Submit Reply
pasting into IDL command line: limit at 1024 characters? [message #58933] Wed, 27 February 2008 15:46 Go to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
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
Re: pasting into IDL command line: limit at 1024 characters? [message #58973 is a reply to message #58933] Fri, 29 February 2008 18:58 Go to previous messageGo to next message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
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.html
Re: pasting into IDL command line: limit at 1024 characters? [message #58974 is a reply to message #58933] Fri, 29 February 2008 18:56 Go to previous messageGo to next message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
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
Re: pasting into IDL command line: limit at 1024 characters? [message #59045 is a reply to message #58933] Tue, 04 March 2008 07:33 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
Thanks to all who responded, at least I am not the only one
noticing this issue... and no, I don't think this is related to
the number of scroll back lines.

Ciao,
Paolo

Loren Anderson wrote:
> I have run into this a number of times. IDLDE doesn't have the same
> limitation though and will accept any length of copied text, at least
> on my Linux machine running Kubuntu.
>
> -Loren
Re: pasting into IDL command line: limit at 1024 characters? [message #59047 is a reply to message #58933] Tue, 04 March 2008 07:06 Go to previous message
Loren Anderson is currently offline  Loren Anderson
Messages: 22
Registered: August 2007
Junior Member
I have run into this a number of times. IDLDE doesn't have the same
limitation though and will accept any length of copied text, at least
on my Linux machine running Kubuntu.

-Loren
Re: pasting into IDL command line: limit at 1024 characters? [message #59057 is a reply to message #58933] Mon, 03 March 2008 11:00 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> But, as you say, the problem is peculiar to IDL, not the shell/
> terminal in general.

Just to throw in that every terminal has a maximum, I pulled the
"checking the maximum length of command line arguments" out of a
configure script and find that OSX terminal does have a size limit but
I bet you wont hit it.

[balarsen@LarsenLaptop]~> sh line_length.sh
checking the maximum length of command line arguments
result: 196608


I am sure that IDL has a limit based on the size of a buffer that is
initialized in the source code for IDL (written in C I guess but don't
know). If I am right on this, one could petition ITT to increase this
buffer for the next release of IDL if this is a issue for folks.



Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
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 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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Tabs in Workbench
Next Topic: Convenient IGRF in IDL

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

Current Time: Wed Oct 08 18:43:48 PDT 2025

Total time taken to generate the page: 0.01033 seconds