Results 1 to 4 of 4

Thread: Linux CL_Console::wait_for_key() does not work

  1. #1

    Question Linux CL_Console::wait_for_key() does not work

    FYI, just started a new 2.2.8 project using Code::Blocks IDE on a Fedora 15 host... looks like it has come a long way since my project using 0.8.1.

    Anyways, the hello world example compiles, links, and goes but alas, the wait_for_key() does not wait. An strace on it does not reveal any attempt either. Likely the least of people's problems, but I thought I'd mention it.

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    You're right, and it is expected behaviour..

    /// \brief Block until a key is pressed in the console window.
    ///
    /// This function does not do anything on Linux
    static void wait_for_key();

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    It is really just a convenience function when developing for Windows.

    Is is annoying when your application exits with an error, and the console window closes before you can read it.

    On Linux, we found it more annoying to "wait for a key", as you normally run apps from a console window

  4. #4

    Default

    Agreed, thanks for the explanations and reasoning.

Similar Threads

  1. Patch: CL_PrimitivesArrayBuilder doesn't work
    By rebecca.palmer in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 09-01-2010, 08:56 AM
  2. How the 1.0 mixer work?
    By speeder in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 07-21-2010, 08:19 PM
  3. Awesome work
    By Thalamus in forum Novashell Game Creation System
    Replies: 1
    Last Post: 04-21-2008, 12:52 PM
  4. Work
    By mrbrown in forum Funeral Quest
    Replies: 2
    Last Post: 10-30-2002, 11:48 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •