Skip to content

Commit

Permalink
Increased rendering speed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMozg committed Jan 14, 2016
1 parent bde1a3e commit 5fb40ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions awkaster.awk
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,16 @@ function fillBackground(){
}

function redraw(){
str = "\n\n\n\n\n\n"
printf "\033[H"
for(y = 0; y < h-2; y++){
str = ""
for(x = 0; x < w; x++){
str = str buffer[x,y]
}
if(y < h-3)
str = str "\n"
print str
}
print str
drawUI()
printf "\033[J"
}

function drawUI(){
Expand Down

0 comments on commit 5fb40ec

Please sign in to comment.