V: 0 character in a string literal error

Created on 1 Nov 2019  路  6Comments  路  Source: vlang/v

V version: 0.1.22
OS: Linux

What did you do? Try to print a color that bash understands

What did you expect to see? The next text printed in that color

What did you see instead? This error "0 character in a string literal"

Bug

All 6 comments

Can you provide your code?

here it is

println("\033[30;1m")

it also happens with the double backslash

you can take a look at the term module.

import term

fn main() {
    println(term.red('red message'))
}

While that definitely works, there's a bug with the 0 char thing that has to be fixed.

ok thanks!

Fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

radare picture radare  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

radare picture radare  路  3Comments

oleg-kachan picture oleg-kachan  路  3Comments

taojy123 picture taojy123  路  3Comments