Re: Share an input routine

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

On Tue, 23 Feb 1999, Arlie Codina wrote:

] Anybody with an input routine and who is willing to share it with me.
]
] Regards,
] Arlie Codina
] web.master at flashmail.com

It depends what kind of input routine you're after... prompt_string() in
Eu2.1(alpha) is supposed to be a good keyboard routine. However, here's my
most recent routine:

function input(sequence prompt)
    integer fh
    sequence out

    puts(1, prompt)
    fh = open("Con", "r")
        out = gets(fh)
    close(fh)
    out = out[1..length(out)-1]
    -- You might like to put a puts(1, "\n") here

    return out
end function

--
Carl R White -- Final Year Computer Science at the University of Bradford
E-mail........: cyrek- at -bigfoot.com -- Remove hyphens. Ta :)
URL...........: http://www.bigfoot.com/~cyrek/
Uncrackable...: "19.6A.23.38.52.73.45 25.31.1C 3C.53.44.39.58"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu