1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v orm: select

This commit is contained in:
Alexander Medvednikov
2020-06-17 00:59:33 +02:00
parent 23993d2264
commit ed58192e4c
10 changed files with 304 additions and 44 deletions

View File

@@ -61,6 +61,10 @@ pub fn header(text, divider string) string {
}
fn supports_escape_sequences(fd int) bool {
//println('TERM=' + os.getenv('TERM'))
if os.getenv('TERM') == 'dumb' {
return false
}
vcolors_override := os.getenv('VCOLORS')
if vcolors_override == 'always' {
return true