pull/1375/head
Joe Conigliaro 2019-07-30 10:55:47 +10:00 committed by Alexander Medvednikov
parent 69b6e682cb
commit cfe581e2ab
2 changed files with 35 additions and 30 deletions

View File

@ -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')
}

View 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)
}