1. A pitiful little question.
- Posted by Philip Maurer <eu4ia at JUNO.COM> Jun 23, 1999
- 488 views
ok, well I have an idea for my very first "program," if you can call it that... I'd just like to print something, and then terminate the window when the user presses a key. I know this is very very simple, but oh well... I know almost nothing about Euphoria. Hopefully that'll change, but for now, I'll be anxiously awaiting a reply. Thanks, Philip PS- I know it has something to do with puts(1, "Type something here\") or something like that, but when I do just that the program window flashes on the screen for about .01seconds. if I keep on clicking on the program, i can see that the words do indeed show up, it's just a matter of making the window stay there until a key is pressed. hmm ___________________________________________________________________ Get the Internet just the way you want it. Free software, free e-mail, and free Internet access for a month! Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
2. Re: A pitiful little question.
- Posted by JJProg at CYBERBURY.NET Jun 23, 1999
- 478 views
EU>ok, well I have an idea for my very first "program," if you can call it EU>that... I'd just like to print something, and then terminate the window EU>when the user presses a key. I know this is very very simple, but oh EU>well... I know almost nothing about Euphoria. Hopefully that'll change, EU>but for now, I'll be anxiously awaiting a reply. EU>Thanks, EU>Philip EU>PS- I know it has something to do with puts(1, "Type something here\") or EU>something like that, but when I do just that the program window flashes EU>on the screen for about .01seconds. if I keep on clicking on the program, EU>i can see that the words do indeed show up, it's just a matter of making EU>the window stay there until a key is pressed. hmm EU>___________________________________________________________________ EU>Get the Internet just the way you want it. EU>Free software, free e-mail, and free Internet access for a month! EU>Try Juno Web: http://dl.www.juno.com/dynoget/tagj. Use get_key() like so: puts(1,"Press any key to end the program.") while get_key() = -1 do end while Jeffrey Fielding JJProg at cyberbury.net http://members.tripod.com/~JJProg/
3. Re: A pitiful little question.
- Posted by Philip Maurer <eu4ia at JUNO.COM> Jun 27, 1999
- 463 views
Thank you, Jeffrey, very much! Even though I am a beginning Euphoria programmer, I am familiar with QBasic and its commands, etc. As any other QBasic programmers may have realized while working with Euphoria, the two are quite different. Because of this, my little mind is confused -- I want to do something simple in Euphoria, but only know the QBasic syntax for it... Oh well, I'll learn. Anyway, this is the first 'major' advance in my Euphoria "career." Thanks again for the help, and I'd love to hear from any QB/EU programmers out there. Philip >Use get_key() like so: > >puts(1,"Press any key to end the program.") >while get_key() = -1 do >end while > >Jeffrey Fielding >JJProg at cyberbury.net >http://members.tripod.com/~JJProg/
4. Re: A pitiful little question.
- Posted by Lucius Hilley <lhilley at CDC.NET> Jun 27, 1999
- 454 views
I am a QB/EU programmer. I know most all of the QB commands and all their EU equivlants. There are others here on the list that can also tell you Euphorias equivlant commands to Quick Basic's commands. Lucius L. Hilley III lhilley at cdc.net +----------+--------------+--------------+ | Hollow | ICQ: 9638898 | AIM: LLHIII | | Horse +--------------+--------------+ | Software | http://www.cdc.net/~lhilley | +----------+-----------------------------+ ----- Original Message ----- From: Philip Maurer <eu4ia at JUNO.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, June 27, 1999 11:16 AM Subject: Re: A pitiful little question. > ---------------------- Information from the mail header ----------------------- > Sender: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU> > Poster: Philip Maurer <eu4ia at JUNO.COM> > Subject: Re: A pitiful little question. > -------------------------------------------------------------------------- ----- > > Thank you, Jeffrey, very much! Even though I am a beginning Euphoria > programmer, I am familiar with QBasic and its commands, etc. As any other > QBasic programmers may have realized while working with Euphoria, the two > are quite different. Because of this, my little mind is confused -- I > want to do something simple in Euphoria, but only know the QBasic syntax > for it... Oh well, I'll learn. Anyway, this is the first 'major' advance > in my Euphoria "career." Thanks again for the help, and I'd love to hear > from any QB/EU programmers out there. > > Philip > > >Use get_key() like so: > > > >puts(1,"Press any key to end the program.") > >while get_key() = -1 do > >end while > > > >Jeffrey Fielding > >JJProg at cyberbury.net > >http://members.tripod.com/~JJProg/ >
5. Re: A pitiful little question.
- Posted by Irv Mullins <irv at ELLIJAY.COM> Jun 27, 1999
- 450 views
On Sun, 27 Jun 1999, you wrote: > Thank you, Jeffrey, very much! ... > >Use get_key() like so: > > > >puts(1,"Press any key to end the program.") > >while get_key() = -1 do > >end while It's worth pointing out that (like many things in Euphoria) there is more than one way to do this: integer i i = wait_key() Wait_key would be preferable to get_key() when running in Windows, since wait_key() lets the processor do other tasks while waiting. Irv
6. Re: A pitiful little question.
- Posted by Philip Maurer <eu4ia at JUNO.COM> Jun 27, 1999
- 424 views
Irv -- thanks for clearing that up. I'll experiment with wait_key() (as well as get_key()), and I can definitely understand the advantages and disadvantages of either of these commands. Everyone has been a great help in introducing me to Euphoria. Regards, Philip On Sun, 27 Jun 1999 13:42:22 -0400 Irv Mullins <irv at ELLIJAY.COM> writes: >It's worth pointing out that (like many things in Euphoria) there >is more than one way to do this: > >integer i >i = wait_key() > >Wait_key would be preferable to get_key() when running in Windows, >since >wait_key() lets the processor do other tasks while waiting. > >Irv
7. Re: A pitiful little question.
- Posted by Philip Maurer <eu4ia at JUNO.COM> Jun 27, 1999
- 446 views
Thanks, Lucius -- I'll be sure to ask the list if I have a question concerning a QB to EU command conversion... It's nice to know where to turn to get help. Right now, I'm looking through the library.doc list of all the Euphoria commands. There are definitely many differences, but I'm sure once I'm more familiar with Euphoria that I'll be able to write in either language, piece of cake. I'll keep on learning about eu commands, and thinking up an idea for a not-too-complicated project. Thanks again. Philip On Sun, 27 Jun 1999 13:08:08 -0400 Lucius Hilley <lhilley at CDC.NET> writes: > I am a QB/EU programmer. I know most all of the QB commands and >all their EU equivlants. There are others here on the list that can >also tell you Euphorias equivlant commands to Quick Basic's commands. > > Lucius L. Hilley III > lhilley at cdc.net >+----------+--------------+--------------+ >| Hollow | ICQ: 9638898 | AIM: LLHIII | >| Horse +--------------+--------------+ >| Software | http://www.cdc.net/~lhilley | >+----------+-----------------------------+