Browse Source

this should be faster. I forgot about sprintf.

main
John-Mark Gurney 5 years ago
parent
commit
5639885564
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      box.sh

+ 2
- 3
box.sh View File

@@ -8,9 +8,8 @@ maxline == 1 {
}

function printtop () {
blank = ""
for (i = 0; i < maxlength + 4; i++)
blank = blank "*"
blank = sprintf("%*s", maxlength + 4, "")
gsub(" ", "*", blank)
printf("%s\n", blank)
}



Loading…
Cancel
Save