mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix term
This commit is contained in:
parent
69b6e682cb
commit
cfe581e2ab
@ -10,10 +10,6 @@ fn _format(msg, open, close string) string {
|
||||
return '\x1b[' + open + 'm' + msg + '\x1b[' + close + 'm'
|
||||
}
|
||||
|
||||
pub fn format(msg, open, close string) string {
|
||||
return _format(msg, open, close)
|
||||
}
|
||||
|
||||
pub fn bg_black(msg string) string {
|
||||
return format(msg, '40', '49')
|
||||
}
|
||||
|
9
vlib/term/colors_nix.v
Normal file
9
vlib/term/colors_nix.v
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright (c) 2019 Alexander Medvednikov. All rights reserved.
|
||||
// Use of this source code is governed by an MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
module term
|
||||
|
||||
pub fn format(msg, open, close string) string {
|
||||
return _format(msg, open, close)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user