packages feed

spade-0.1.0.6: docs/functions/misc.md

### Miscellaneous Functions

#### print

Accept many values and prints them in order, without an ending newline.

Example:

```
printn(1, ", SPADE") -- output: "1, SPADE"
```

#### println

Accept many values and prints them in order, ending in a newline.

Example:

```
println(100)
println(1, "SPADE")
```

#### not

Boolean not operation.

#### getkey

Waits for the user to press a key, and returns the pressed key as a string value.

#### inputline

Prints a prompt, and reads a string from keyboard.

#### wait

Waits for the number of seconds specified in the argument.

Example:

```
wait(0.5)  -- Waits for half second.
```

#### stringtonum

Convert a string to a number.

Example:

```
println(stringtonum("23.4") + 5) -- prints 28.4
```

#### tostring

Convert a value to a string.

#### csinit

Initialize character graphics

#### csgoto

Set current output location

#### csprint

Prints text at current location


#### csclear

Clears the screen to start drawing next frame.

#### csdraw

Output instructions to update screen.