I could not believe how slow this is

· nat's blog


 1#!/bin/bash
 2
 3# Get terminal size
 4rows=$(tput lines)
 5cols=$(tput cols)
 6
 7# Iterate through each row
 8for ((row=0; row<rows; row++)); do
 9    # Iterate through each column
10    for ((col=0; col<cols; col++)); do
11        # Print '*' at current position
12        tput cup $row $col
13        printf "*"
14    done
15done

It's like a TTY with a 1200 baud modem. Actually fairly incredible. (On Linux)