[futurebasic] Re: [FB] A few beginner questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2009 : Group Archive : Group : All Groups

From: Ellery Bann <ellery@...>
Date: Tue, 20 Jan 2009 14:07:43 -0200
Found out that adding "include "FBRuntime.incl" will open a "console"  
window, but not really a terminal window.  The translated code is  
still the very cryptic Apple/FB stuff that I am not familiar with.

The app also won't run inside a terminal window (it will open that  
other "console" window).  Is it possible to generate code for command- 
line use?


On Jan 20, 2009, at 1:48 PM, Ellery Bann wrote:

> Once again, thanks for the useful information and encouragement.  I  
> am now confident that I made the right decision.
>
> I am having a lot of fun messing around with FB, mostly FBtoC!
>
> 1) I think that FBtoC can be integrated with Emacs... if anyone has  
> already done that, please let me know!
> 2) I find it very interesting that the code below wasn't translated  
> to the normal "printf" code.  What is all that junk?
> 3) Where is the console screen?  When I run the program, a screen  
> pops-up and disappears too fast to see anything.  I want to write  
> text-only console-based stuff at first... just like during my  
> Apple //e days...
>
> Thanks for any help... once I get this console code going, I promise  
> not to bombard this mailing list with newbie questions...
>
> === FB-code ===
> cls
> print "Hello, World!"
>
> === C-code ===
> #include "_0_TranslatedRuntime.h"
> #include "ArrayIndices.c"
>
> ///////////////////////////////////////////////////
> //            translated main code               //
> ///////////////////////////////////////////////////
> int main( void )
> {
>  InitFBGlobals();
>  Cls();   FBPrintString( PSstrcpy( gFBStrStk[++gFBStk], "\pHello,  
> World!" ) );\
>  PrintCR();
>  return 0;
> }
>
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
>