Changes between Version 7 and Version 8 of Clojure Client Tutorial


Ignore:
Timestamp:
Aug 2, 2011 12:18:34 PM (13 years ago)
Author:
kedwar10
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clojure Client Tutorial

    v7 v8  
    3939Now it is time to learn to use the client.  cd to the top level directory and typu "lein repl". If everything went smoothly you'll see something about no rlwrap and the prompt.
    4040
    41 $ lein repl[[BR]]
    42 which: no rlwrap in (/usr/staff/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/bin:/usr/bin:/usr/openwin/bin:/usr/dt/bin:/usr/bin/X11:/usr/gfx:/usr/local/bin:/usr/sbin:/usr/ucb:/usr/bsd:/usr/vision/bin:/usr/grads/bin:/usr/java/bin:/u/kedwar10/bin:/home/vax7/u21/kedwar10/Software/cake/bin:/home/vax7/u21/kedwar10/Software:/home/vax7/u21/kedwar10/Software/LPG-td-1.0/:/home/vax7/u21/kedwar10/Software/q3map2/)[[BR]]
    43 REPL started; server listening on localhost:2192. [[BR]]
     41{{{
     42$ lein repl
     43which: no rlwrap in ... (output truncated)
     44REPL started; server listening on localhost:2192.
    4445client.core=>
     46}}}
    4547
    4648Note that the "core" namespace has loaded.  You can launch ioquake with a specific map using the "run-ioquake" function (located in utilities.clj). Type (doc run-ioquake) to see the documentation.
    4749
    48 client.core=> (doc run-ioquake)[[BR]]
    49 client.utilities/run-ioquake[[BR]]
     50{{{
     51client.core=> (doc run-ioquake)
     52-------------------------
     53client.utilities/run-ioquake
    5054([level] [path level])
    51   This function launches ioquake with the specified level, if the path to ioquake is hardcoded into this function, type '(run-ioquake <level>)' where <level> is a map in the maps folder of ioquake, else you must provide the path.[[BR]]
    52 nil
     55  This function launches ioquake with the specified level, if the path to ioquake is hardcoded into this function, type '(run-ioquake <level>)'
     56  where <level> is a map in the maps folder of ioquake,  else you must provide the path.
     57nil
     58}}}
    5359
    5460For example:
     61
     62{{{
    5563client.core=> (run-ioquake "/home/vax7/u21/kedwar10/Projects/Quagents/quagents/ioquake3/build/release-linux-i386/ioquake3.i386" "firstroom")
    5664#<UNIXProcess java.lang.UNIXProcess@2a5ab9>
     65}}}
    5766
    5867Since I already have the path predefined, however, this will also work: