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 9 of 17 Topic 157 of 159
Post > Topic >>

Re: Xina output behaviour.

by morrimichael@[EMAIL PROTECTED] Apr 27, 2008 at 09:36 PM

On Apr 26, 11:47=A0am, Robert Spykerman <robert.spyker...@[EMAIL PROTECTED]
>
wrote:
> On Apr 26, 7:20 pm, morrimich...@[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
> > neccesary. Also, is their a way to get Mops to do this as well?
>
> > Thanks in advance.
>
> Hmm.. that's an interesting question.
>
> What you are seeing is the default behaviour of lina.
>
> I am still dissecting and piecing the source together in my head. Lina
> takes input from the console from stdin, (ie REFILL-TIB) and the
> carriage return you see (before the output and OK) , I believe stems
> from the cr you tap in as stdin is read via READ-FILE.
>
> I've looked thru' the source and I can't account for it in any other
> way at present.
>
> So to change this behaviour, I am not sure exactly what you can do
> about it, as yet.
>
> One possibility may be to flip some flags in the termio structure that
> sets up the terminal via the ioctl syscall. Maybe there might be a
> flag that could prevent the newline. I admit I am unsure about whether
> this will work, I do not know enough about this - still learning how
> linux/unixes are put together :)
>
> Albert van der Horst might be able to suggest something.
>
> If I find out I shall let you know, meanwhile if you find any thing
> else buggy let me know, there's a lot of work yet to be done. I still
> haven't found out why my fork =A0stuffed up :)
>
> Robert Spykerman

I don't know if you consider it a bug or not, but base 36 doesn't
work. Which is a shame since you can have ever so much fun with it.
 




 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:23:42 CDT 2008.