TPUT
Root / Documentation / [.]
![Documentation](https://smilebasicsource.com/static/resources/sb-docs.png)
Put a character on a text screen at the specified coordinates.
* Syntax
```sbsyntax
TPUT screenID%, x%, y%, charCode% {, attribute% }
TPUT screenID%, x%, y%, string$ {, attribute% }
```
|* Input | Description |
| `screenID%` | ID of the target text screen. |
| `x%`, `y%` | Coordinates where to write the character. |
| `charCode%` | Character code of the character to write. |
| `string$` | Character to write as a string. |
| `attribute%` | Display attribute bitset to apply to the character.\
Optional. If unspecified, the attributes set by `ATTR` are used. |
If `string$` is used, only the first character of the string is written.
* Examples
```sb4
'put "A" on text screen 0 at 10,10
TPUT 0, 10, 10, "A"
```
```sb4
'put an upside-down user character
TPUT 0, 10, 10, #TUSRCHR+10, #TREVV
```
No posts yet (will you be the first?)