in reply to SDL Console Text Box

Could you add a main section, to make a fully working example?

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: SDL Console Text Box
by shotgunefx (Parson) on Feb 18, 2006 at 00:08 UTC
    Here you go. A hastily written example. Basically reads __DATA__ and the scrolls through the text back and forth. Press "ESC" to exit.
      It works, thanks.

      I'm not really a human, but I play one on earth. flash japh
        Cool. Out of curiosity, what OS are you running it on? I gave up on trying to get SDL working on Win a long time ago.


        -Lee
        "To be civilized is to deny one's nature."
Re^2: SDL Console Text Box
by shotgunefx (Parson) on Feb 17, 2006 at 22:17 UTC
    Sure. I'll try and get to it tonight.


    -Lee
    "To be civilized is to deny one's nature."
      Thanks, I tried to get it going, but my SDL isn't so good. I couldn't figure out how to pass args into the sub, kept getting errors.

      I'm not really a human, but I play one on earth. flash japh
        I attached an example below. Make sure you have the latest versions of SDL running. Fairly certain the 1.3 series won't work.


        -Lee
        "To be civilized is to deny one's nature."