Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Tobias Fröschle via Ql-Users
Lee,

are you running on SMSQ/E? Are you maybe running PE with PE_BGOFF?

That will not allow your background program to run when it has (even partially) 
obstructed windows. So, if you "TYPE_IN" something into an obstructed S*Basic 
window, the job owning that window will not be able to digest your input, 
leading to such buffer overflows.

Try PE_BGON to activate background window processing.

Tobias


> Am 30.09.2017 um 15:43 schrieb Lee Privett via Ql-Users 
> :
> 
> Yes the string is about 60 characters long which is probably why it fails
> on the third TYPE_IN
> 
> tried using Pause to no effect :(
> 
> Lee
> 
> 
> 
> 
> 
> Virus-free.
> www.avast.com
> 
> <#m_2324895060461743699_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> 
> Lee
> 
> 
> 
> 
> On Sat, Sep 30, 2017 at 12:38 PM, Wolfgang Lenerz via Ql-Users <
> ql-users@lists.q-v-d.com> wrote:
> 
>> Hi,
>> 
>> I have a slight problem with TYPE_IN
>>> 
>>> Using it to put some commands in #0, works well in an instance until I
>>> reach what appears to be a maximum set of characters, where the QL just
>>> hangs.
>>> 
>>> e.g.
>>> 
>>> 1920  TYPE_IN An&":"$(10)
>>> 1930  TYPE_IN (An+1)$$(10)
>>> 1932  TYPE_IN (An+2)$$(10)
>>> 1940  TYPE_IN (An+3)$$(10)
>>> 
>>> 
>>> An is an integer
>>> Final$ is just text
>>> Top$ is a string of asterisks
>>> 
>>> it locks up displaying halfway through 1940
>>> 
>>> Is there a buffer I can clear after using TYPE_IN?
>>> 
>> 
>> How long i the string in line 194?
>> 
>> IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase
>> this, AFAIK.
>> 
>> I don't think you can clear this.
>> Perhaps a pause after the earlier TYPE_In instructions will leave the
>> system time to clear it.
>> 
>> 
>> 
>> HTH
>> 
>> Wolfgang
>> 
>> ___
>> QL-Users Mailing List
>> 
> ___
> QL-Users Mailing List

___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Michael Bulford via Ql-Users
> Fellow QL'ers 

>

> I have a slight problem with TYPE_IN 

>

> Using it to put some commands in #0, works well in an instance until I 

> reach what appears to be a maximum set of characters, where the QL just 

> hangs. 

>

> e.g. 

>

> 1920  TYPE_IN An&":"$(10) 

> 1930  TYPE_IN (An+1)$$(10) 

> 1932  TYPE_IN (An+2)$$(10) 

> 1940  TYPE_IN (An+3)$$(10) 

>

>

> An is an integer 

> Final$ is just text 

> Top$ is a string of asterisks 

>

> it locks up displaying halfway through 1940 

>

> Is there a buffer I can clear after using TYPE_IN? 

>

> or can I increase the length of the number of characters TYPE_IN can use? 

>

> Many thanks in anticipation 

>

> Lee 


If this is a compiled Turbo program, then there should be no problems as each
of the typed-in commands would be processed separately.

Running this under the Interpreter is slightly different. Each of the typed-in

commands will only get to be processed once the SuperBASIC program has come 

to a stop. Before this stop happens, everything typed in to SuperBASIC's #0

will be stored in #0's buffer. If there are many commands to be processed, then

this buffer could be exceeded, resulting in one of the commands being truncated
and the remainder being lost. There is a simple way to overcome this problem.
The program can be deliberately stopped after each of the TYPE_INs, and then be
made to continue afterwards.  To get the program to stop, use the STOP command,
and to get the program to continue, use the CONTINUE command. This idea can be
implemented by extending each of the TYPE_IN commands in the program, as 
follows ..

: IF NOT COMPILED : TYPE_IN "CONTINUE" & CHR$(10) : STOP

Notice the STOP command at the end. This is important and is the secret. The 
STOP
command stops the program and allows the typed_in command to execute, after 
which
the CONTINUE command causes the program to continue.  By doing it this way, all
commands will be executed separately, similar to how a compiled program would 
work.
Lee, can you please try the above suggestion and let us know how you get on.
Best wishes,
Michael
___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Lee Privett via Ql-Users
Yes the string is about 60 characters long which is probably why it fails
on the third TYPE_IN

tried using Pause to no effect :(

Lee





Virus-free.
www.avast.com

<#m_2324895060461743699_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Lee




On Sat, Sep 30, 2017 at 12:38 PM, Wolfgang Lenerz via Ql-Users <
ql-users@lists.q-v-d.com> wrote:

> Hi,
>
> I have a slight problem with TYPE_IN
>>
>> Using it to put some commands in #0, works well in an instance until I
>> reach what appears to be a maximum set of characters, where the QL just
>> hangs.
>>
>> e.g.
>>
>> 1920  TYPE_IN An&":"$(10)
>> 1930  TYPE_IN (An+1)$$(10)
>> 1932  TYPE_IN (An+2)$$(10)
>> 1940  TYPE_IN (An+3)$$(10)
>>
>>
>> An is an integer
>> Final$ is just text
>> Top$ is a string of asterisks
>>
>> it locks up displaying halfway through 1940
>>
>> Is there a buffer I can clear after using TYPE_IN?
>>
>
> How long i the string in line 194?
>
> IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase
> this, AFAIK.
>
> I don't think you can clear this.
> Perhaps a pause after the earlier TYPE_In instructions will leave the
> system time to clear it.
>
>
>
> HTH
>
> Wolfgang
>
> ___
> QL-Users Mailing List
>
___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Derek via Ql-Users
Hi,
Why just allocate section memory to save the keyboard buffer.


RegardsDerek
 Original message From: Wolfgang Lenerz via Ql-Users 
 Date: 30/09/2017  13:38  (GMT+00:00) To: 
ql-us...@q-v-d.com Cc: Wolfgang Lenerz  Subject: Re: 
[Ql-Users] TYPE_IN 

Or perhaps even directly into channel #0...

Wolfgang
> Hi,
> 
>> Is it possibile to extend the 128 byte QL keyboard buffer.
> 
> Hi, no once allocated, I don't think you can extend it.
> 
> 
>> Was TYPE_IN an a attempt to do this?
> I don't know, wasn't it just a keyword to type things into the keyboard 
> queue of job 0?
> 
> Regards
> 
> Wolfgang
___
QL-Users Mailing List
___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Wolfgang Lenerz via Ql-Users


Or perhaps even directly into channel #0...

Wolfgang

Hi,


Is it possibile to extend the 128 byte QL keyboard buffer.


Hi, no once allocated, I don't think you can extend it.



Was TYPE_IN an a attempt to do this?
I don't know, wasn't it just a keyword to type things into the keyboard 
queue of job 0?


Regards

Wolfgang

___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Wolfgang Lenerz via Ql-Users

Hi,


Is it possibile to extend the 128 byte QL keyboard buffer.


Hi, no once allocated, I don't think you can extend it.



Was TYPE_IN an a attempt to do this?
I don't know, wasn't it just a keyword to type things into the keyboard 
queue of job 0?


Regards

Wolfgang


RegardsDerek
 Original message From: Wolfgang Lenerz via Ql-Users 
 Date: 30/09/2017  12:38  (GMT+00:00) To: 
ql-us...@q-v-d.com Cc: Wolfgang Lenerz  Subject: Re: [Ql-Users] 
TYPE_IN
Hi,


I have a slight problem with TYPE_IN

Using it to put some commands in #0, works well in an instance until I
reach what appears to be a maximum set of characters, where the QL just
hangs.

e.g.

1920  TYPE_IN An&":"$(10)
1930  TYPE_IN (An+1)$$(10)
1932  TYPE_IN (An+2)$$(10)
1940  TYPE_IN (An+3)$$(10)


An is an integer
Final$ is just text
Top$ is a string of asterisks

it locks up displaying halfway through 1940

Is there a buffer I can clear after using TYPE_IN?


How long i the string in line 194?

IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase
this, AFAIK.

I don't think you can clear this.
Perhaps a pause after the earlier TYPE_In instructions will leave the
system time to clear it.



HTH

Wolfgang

___
QL-Users Mailing List
___
QL-Users Mailing List



___
QL-Users Mailing List

Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Tobias Fröschle via Ql-Users
You _can_ open a cONsole window with more than 128 bytes of input buffer 
("con_512x202a0x0_256", for example). But you _cannot_ tell S*Basic to open #0 
like that as default.

I just checked: 

close#0:open#0,"con_512x256a0x0_1024" 

seems to work. Unfortunately, I cannot check how large the keyboard buffer 
allocated might be.

Tobias


> Am 30.09.2017 um 13:56 schrieb Derek via Ql-Users :
> 
> Hi,
> Is it possibile to extend the 128 byte QL keyboard buffer.
> Was TYPE_IN an a attempt to do this?
> RegardsDerek
>  Original message From: Wolfgang Lenerz via Ql-Users 
>  Date: 30/09/2017  12:38  (GMT+00:00) To: 
> ql-us...@q-v-d.com Cc: Wolfgang Lenerz  Subject: Re: 
> [Ql-Users] TYPE_IN 
> Hi,
> 
>> I have a slight problem with TYPE_IN
>> 
>> Using it to put some commands in #0, works well in an instance until I
>> reach what appears to be a maximum set of characters, where the QL just
>> hangs.
>> 
>> e.g.
>> 
>> 1920  TYPE_IN An&":"$(10)
>> 1930  TYPE_IN (An+1)$$(10)
>> 1932  TYPE_IN (An+2)$$(10)
>> 1940  TYPE_IN (An+3)$$(10)
>> 
>> 
>> An is an integer
>> Final$ is just text
>> Top$ is a string of asterisks
>> 
>> it locks up displaying halfway through 1940
>> 
>> Is there a buffer I can clear after using TYPE_IN?
> 
> How long i the string in line 194?
> 
> IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase 
> this, AFAIK.
> 
> I don't think you can clear this.
> Perhaps a pause after the earlier TYPE_In instructions will leave the 
> system time to clear it.
> 
> 
> 
> HTH
> 
> Wolfgang
> 
> ___
> QL-Users Mailing List
> ___
> QL-Users Mailing List

___
QL-Users Mailing List


Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Derek via Ql-Users
Hi,
Is it possibile to extend the 128 byte QL keyboard buffer.
Was TYPE_IN an a attempt to do this?
RegardsDerek
 Original message From: Wolfgang Lenerz via Ql-Users 
 Date: 30/09/2017  12:38  (GMT+00:00) To: 
ql-us...@q-v-d.com Cc: Wolfgang Lenerz  Subject: Re: 
[Ql-Users] TYPE_IN 
Hi,

> I have a slight problem with TYPE_IN
> 
> Using it to put some commands in #0, works well in an instance until I
> reach what appears to be a maximum set of characters, where the QL just
> hangs.
> 
> e.g.
> 
> 1920  TYPE_IN An&":"$(10)
> 1930  TYPE_IN (An+1)$$(10)
> 1932  TYPE_IN (An+2)$$(10)
> 1940  TYPE_IN (An+3)$$(10)
> 
> 
> An is an integer
> Final$ is just text
> Top$ is a string of asterisks
> 
> it locks up displaying halfway through 1940
> 
> Is there a buffer I can clear after using TYPE_IN?

How long i the string in line 194?

IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase 
this, AFAIK.

I don't think you can clear this.
Perhaps a pause after the earlier TYPE_In instructions will leave the 
system time to clear it.



HTH

Wolfgang

___
QL-Users Mailing List
___
QL-Users Mailing List

Re: [Ql-Users] TYPE_IN

2017-09-30 Thread Wolfgang Lenerz via Ql-Users

Hi,


I have a slight problem with TYPE_IN

Using it to put some commands in #0, works well in an instance until I
reach what appears to be a maximum set of characters, where the QL just
hangs.

e.g.

1920  TYPE_IN An&":"$(10)
1930  TYPE_IN (An+1)$$(10)
1932  TYPE_IN (An+2)$$(10)
1940  TYPE_IN (An+3)$$(10)


An is an integer
Final$ is just text
Top$ is a string of asterisks

it locks up displaying halfway through 1940

Is there a buffer I can clear after using TYPE_IN?


How long i the string in line 194?

IIRC, the Ql's keyboard buffer is 128 bytes long... You cannot increase 
this, AFAIK.


I don't think you can clear this.
Perhaps a pause after the earlier TYPE_In instructions will leave the 
system time to clear it.




HTH

Wolfgang

___
QL-Users Mailing List


[Ql-Users] TYPE_IN

2017-09-30 Thread Lee Privett via Ql-Users
Fellow QL'ers

I have a slight problem with TYPE_IN

Using it to put some commands in #0, works well in an instance until I
reach what appears to be a maximum set of characters, where the QL just
hangs.

e.g.

1920  TYPE_IN An&":"$(10)
1930  TYPE_IN (An+1)$$(10)
1932  TYPE_IN (An+2)$$(10)
1940  TYPE_IN (An+3)$$(10)


An is an integer
Final$ is just text
Top$ is a string of asterisks

it locks up displaying halfway through 1940

Is there a buffer I can clear after using TYPE_IN?

or can I increase the length of the number of characters TYPE_IN can use?

Many thanks in anticipation

Lee





Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
QL-Users Mailing List