Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/cpptcl/LICENSE @ 1364

Last change on this file since 1364 was 1214, checked in by landauf, 17 years ago

merged console-branch back to trunk.
IMPORTANT: update your media directory!

you need TCL to compile. TCL is available here: http://www.tcl.tk/
another option is to check out https://svn.orxonox.net/ogre/tcl8.5.2/ and compile it by yourself. makefiles are in the 'macosx', 'unix' and 'win' subfolders.
FindTCL.cmake searches in the usual locations and in ../libs/tcl8.5.2/

the orxonox console can be activated with numpad-enter. whatever you enter will be parsed by TCL. if TCL doesn't know a command, it gets executed by orxonox.

simple tcl commands are: "puts text" to write "text" into the console, "expr 1+1" to calculate the result of the given expression. just try it by yourself with "puts [expr 1+1]".
[x] means: evaluate x and use the returnvalue as an argument. in this case the returned value is "2" and the resulting command therefore "puts 2".

you can combine orxonox and tcl commands. a simple orxonox command is "log text" that writes text into the console and the logfile. test it with "log [expr 1+1]" to write "2" into all output channels of orxonox. something more advanced: "log [clock seconds]" writes the seconds since 1970 into the logfile. feel free to combine both: "log [clock seconds]: 1+1 is [expr 1+1]"

TCL uses variables. to set a new variable, use "set varname value". you can use the variable wherever you want with $varname. with this we can make the above command a bit more elegant:
set myexpression 1+1
log [clock seconds]: $myexpression is [expr $myexpression]

read more about tcl in the wiki: http://wiki.tcl.tk/

File size: 1.6 KB
RevLine 
[1151]1Each source file contains the following notice:
2
3//
4// Copyright (C) 2004-2006, Maciej Sobczak
5//
6// Permission to copy, use, modify, sell and distribute this software
7// is granted provided this copyright notice appears in all copies.
8// This software is provided "as is" without express or implied
9// warranty, and with no claim as to its suitability for any purpose.
10//
11
12The above is the shortest license I have found.
13I have copied this wording from one of the source files of the Boost library.
14
15Just to explain the above terms:
16
171. The library is free (like in "freedom").
18
192. You can use it for any purpose you wish. You can even sell it.
20
213. You can modify the source files. If you do this, please feel free to add
22   your own copyright notices wherever you want, if you want.
23   You may also add more restrictive license terms.
24   You only have to keep the above notice unchanged in all source files.
25
264. You can combine this library or its modified version with other software.
27   The license claims nothing that would affect the resulting work.
28   See point 3. if you need to make any modifications.
29
305. You can compile this library or its modified version to the binary form.
31   The license does not affect the compiled result in any way.
32   In particular, you do not need to (but you still can) display the above
33   copyright notice to the final user, and you do not need to (but you still
34   can) inform the final user that your product was prepared with the help
35   of this library.
36
376. Do not sue me for my (and your) mistakes and errors.
38
39As you see, this license is very permissive.
Note: See TracBrowser for help on using the repository browser.