Add line2 command which prints a double line

This commit is contained in:
Talia 2018-08-16 08:20:46 +02:00
parent 2019502368
commit 735ce08422

View file

@ -69,6 +69,10 @@ row = (row) -> tab{row}
box = (box) -> tab{{box}} box = (box) -> tab{{box}}
line = (len=80) -> print string.rep('─', len) line = (len=80) -> print string.rep('─', len)
line2 = (len=80) ->
error('Length must be at least 2 characters', 2) if len < 2
print '┌'..string.rep('─', len-2)..'┐'
print '└'..string.rep('─', len-2)..'┘'
CLASS = [[ CLASS = [[
print vim.col { print vim.col {
@ -92,7 +96,7 @@ DRAW = [[
{ {
:tree, :box, :tab, :col, :row, :line :tree, :box, :tab, :col, :row, :line, :line2
:CLASS, :DRAW :CLASS, :DRAW
-- Aliases -- Aliases
table: tab table: tab