github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/tout.md (about) 1 # `tout` 2 3 > Print a string to the STDOUT and set it's data-type 4 5 ## Description 6 7 Write parameters to STDOUT without a trailing new line character. Cast the 8 output's data-type to the value of the first parameter. 9 10 ## Usage 11 12 ``` 13 tout data-type "string to write" -> <stdout> 14 ``` 15 16 ## Examples 17 18 ``` 19 ยป tout json { "Code": 404, "Message": "Page not found" } -> pretty 20 { 21 "Code": 404, 22 "Message": "Page not found" 23 } 24 ``` 25 26 ## Detail 27 28 `tout` supports ANSI constants. 29 30 Unlike `out`, `tout` does not append a carriage return / line feed. 31 32 ## See Also 33 34 * [ANSI Constants](../user-guide/ansi.md): 35 Infixed constants that return ANSI escape sequences 36 * [`(brace quote)`](../parser/brace-quote-func.md): 37 Write a string to the STDOUT without new line (deprecated) 38 * [`cast`](../commands/cast.md): 39 Alters the data type of the previous function without altering it's output 40 * [`err`](../commands/err.md): 41 Print a line to the STDERR 42 * [`format`](../commands/format.md): 43 Reformat one data-type into another data-type 44 * [`out`](../commands/out.md): 45 Print a string to the STDOUT with a trailing new line character 46 * [`pretty`](../commands/pretty.md): 47 Prettifies JSON to make it human readable 48 49 <hr/> 50 51 This document was generated from [builtins/core/io/echo_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/io/echo_doc.yaml).