* Println prints the content prefixed and suffixed with a carriage return with an endline in the end. Unlike fmt.Println, this doesn't add spaces between the elements This should be used if raw terminal is enabled, but it works without it aswell */
(v ...any)
| 142 | This should be used if raw terminal is enabled, but it works without it aswell |
| 143 | */ |
| 144 | func Println(v ...any) (i int, err error) { |
| 145 | if i0, err := fmt.Print("\r"); err != nil { |
| 146 | return i0, err |
| 147 | } else { |
| 148 | i += i0 |
| 149 | } |
| 150 | |
| 151 | if i0, err := fmt.Print(v...); err != nil { |
| 152 | return i0, err |
| 153 | } else { |
| 154 | i += i0 |
| 155 | } |
| 156 | i0, err := fmt.Println("\r") |
| 157 | |
| 158 | return i + i0, err |
| 159 | } |
| 160 | |
| 161 | /* |
| 162 | Print prints the content prefixed and suffixed with a carriage return. |