Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: Xina output...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 17 Topic 157 of 159
Post > Topic >>

Re: Xina output behaviour.

by Albert van der Horst <albert@[EMAIL PROTECTED] > Apr 27, 2008 at 10:19 AM

In article
<f931ef63-7e96-4c5d-8132-724ad04bcef8@[EMAIL PROTECTED]
>,
 <morrimichael@[EMAIL PROTECTED]
> wrote:
>In most Forths that I have used, output is on the same line as the
>input to the interpreter, but in Xina the output is on the next line.
>For instance:
>
>\ Most Forths:
>2 2 + . 4 ok
>\ Xina
>2 2 + .
>4 ok
>
>Is their anyway to make Xina output on the same line as it's input? I
>don't mind having to edit the assembly source if that is what's

Try this

1000 MS

As you see, the carriage return is reflected before even the execution
is started. It is the point where you can no longer edit the line.
The carriage return is reflected by the OS, not lina/xina.
So what you have to do is change the way the console behaves,
which is regulated by the dreaded termios struct. I'm looking into
it right now, for a flash program, and it is not pretty.
You have to disable echo, then reflect everything manually.
Come to think about it, it also means you cannot see what you
type, before you press return. So this is hardly an option.

In the generic system, you can plug in a key by key input.
There is a prelude.m4 with ``define({_KEY_BY_KEY_}, _no)''
Once xina is added to the configuration files, you can use that.
This is the step that generates the .asm.

By the way I think it is similar to a request to ask a Unix shell
not to do
  echo aap
  aap
but
echo aap aap

I personally would not like that.

It is useful for 4 by 16 character displays, I admit.
(But embedded ciforth version have a KEY-BY-KEY by default.)

>neccesary. Also, is their a way to get Mops to do this as well?

>
>Thanks in advance.

I'm glad this kind of things come up. It means at least it is more
or less working.

Groetjes Albert

--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@[EMAIL PROTECTED]
 &=n http://home.hccnet.nl/a.w.m.van.der.horst
 




 17 Posts in Topic:
Xina output behaviour.
morrimichael@[EMAIL PROTE  2008-04-26 02:20:10 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-04-26 09:47:10 
Re: Xina output behaviour.
spam@[EMAIL PROTECTED]   2008-04-26 15:21:53 
Re: Xina output behaviour.
morrimichael@[EMAIL PROTE  2008-04-26 14:53:37 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-04-27 02:00:40 
Re: Xina output behaviour.
Albert van der Horst <  2008-04-27 13:13:41 
Re: Xina output behaviour.
Albert van der Horst <  2008-04-27 10:19:58 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-04-27 08:37:00 
Re: Xina output behaviour.
morrimichael@[EMAIL PROTE  2008-04-27 21:36:04 
Re: Xina output behaviour.
Albert van der Horst <  2008-04-28 19:21:20 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-04-28 04:41:53 
Re: Xina output behaviour.
morrimichael@[EMAIL PROTE  2008-04-30 02:43:46 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-04-30 04:53:51 
Re: Xina output behaviour.
Albert van der Horst <  2008-05-01 13:41:57 
Re: Xina output behaviour.
demarchie@[EMAIL PROTECTE  2008-05-01 13:58:57 
Re: Xina output behaviour.
Robert Spykerman <robe  2008-05-04 02:05:59 
Re: Xina output behaviour.
morrimichael@[EMAIL PROTE  2008-05-05 23:07:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:20:38 CDT 2008.