mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
![Felix Scholz](/assets/img/avatar_default.png)
* introduce bright versions of standard ansi colors * allow developer to colorize messages with rgb * allow developer to colorize messages using hex * fix broken formatting
13 lines
377 B
V
13 lines
377 B
V
// 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)
|
|
}
|
|
|
|
pub fn format_rgb(r, g, b int, msg, open, close string) string {
|
|
return _format_rgb(r, g, b, msg, open, close)
|
|
} |