mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: make the compiler_errors_test.v output silent in the CI for the OK cases
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by an MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
module term
|
||||
|
||||
// Sources for ANSI Control Sequences
|
||||
// https://github.com/RajeshPatkarInstitute/Panim
|
||||
// https://www.gnu.org/software/screen/manual/html_node/Control-Sequences.html
|
||||
@@ -61,7 +62,7 @@ pub fn erase_tobeg() {
|
||||
|
||||
// clears entire screen and returns cursor to top left-corner
|
||||
pub fn erase_clear() {
|
||||
print("\033[H\033[J")
|
||||
print('\033[H\033[J')
|
||||
}
|
||||
|
||||
pub fn erase_del_clear() {
|
||||
@@ -97,3 +98,11 @@ pub fn show_cursor() {
|
||||
pub fn hide_cursor() {
|
||||
print('\x1b[?25l')
|
||||
}
|
||||
|
||||
// clear_previous_line - useful for progressbars.
|
||||
// It moves the cursor to start of line, then 1 line above,
|
||||
// then erases the line. In effect the next println will overwrite
|
||||
// the previous content.
|
||||
pub fn clear_previous_line() {
|
||||
print('\r\x1b[1A\x1b[2K')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user