The effect of line buffering stdout

Simply watch the 2 minutes YouTube video below to understand what I am talking about.

Tcl effect of line buffering stdout

Now to make the Cisco router terminal print the stars like the way the laptop is printing, you'll have to start your code with this Tcl command:

fconfigure stdout -buffering none

or you can, otherwise, give it a flush stdout after every puts in the inner loop like so:

puts -nonewline "*"
flush stdout