RE: Live Tutoria?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lynn Kilroy wrote:

> How do I compose a string with the output of wait_key?  That I know that 
> one is also very telling - I integrated it in Inkey.

See http://www.rapideuphoria.com/lib_u_z.htm#wait_key

Here is an example:

include get.e

function Input()
    sequence string_in -- a place to store our string
    integer key -- the next key in the buffer

    string_in = {} -- empty sequence/string
    key = wait_key() -- get the first key
    while key != 13 do
        puts(1, key) -- echo the key to the screen
        string_in &= key -- add the key onto the string
        key = wait_key() -- get another key
    end while

    return string_in
end function

sequence new_string
new_string = Input()

puts(1, new_string)


Of course you could just use gets(), see
http://www.rapideuphoria.com/lib_e_g.htm#gets example 2.

> 
> > 
> > Oh, I don't know if you are using email or the web interface for 
> > EUforum. If you are using the web interface, you can put \<eucode\> 
> > \</eucode\> around a code snippet to "colorize" it in the forum.
> 
> I am using Topica to view and reply to the forum, now.  Seems that 
> something was buggy with my Hotmail interface.  See if Topica will work 
> better.
> 
> Which means I have a Topica account. {Giggles} I even own several dead 
> mailing lists!  Aren't I special? {Laughs}

Try using the web interface directly to the Forum
http://www.listfilter.com/EUforum it works very well, much better than Topica.

> 
> Love & Friendship & Blessed Be!
> Lynn Erika Kilroy
> 
> 


--
"The author regrets that he is unable to reconcile himself to the
thoughtful point of view you have expressed. However, it must be kept
in mind that being raised in different cultures and different places can
result in such differences of viewpoint between individuals.
The author is from planet Earth." [author unknown]

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu