mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 09:34:17 +02:00
add API viewer, mv repl subcommand to api (#41)
This commit is contained in:
@@ -292,6 +292,10 @@ func (data *Table) Addheaders(headers ...string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (data *Table) AddRow(fields ...string) {
|
||||
data.Entries = append(data.Entries, fields)
|
||||
}
|
||||
|
||||
// return the length of a string but only visible chars, w/o ansi color escapes
|
||||
func visibleLen(word string) int {
|
||||
return len(ansiCtrlSeq.ReplaceAllLiteralString(word, ""))
|
||||
|
||||
Reference in New Issue
Block a user