Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Howto make a text blink in a Terminal using Tcl?

157 views
Skip to first unread message

Me

unread,
Jun 11, 2013, 1:24:25 PM6/11/13
to
Thank you.

tomás zerolo

unread,
Jun 13, 2013, 12:21:27 PM6/13/13
to
Me <saxo...@gmail.com> writes:

> Howto make a text blink in a Terminal using Tcl?
> Thank you.

This depends more on the terminal you use than on Tcl itself.

This, for example, works for me:

puts "\33\[05mBlinky"

(I'm using an XTerm).

See e.g. <https://en.wikipedia.org/wiki/ANSI_escape_code> for the whole,
convolved story.

That said, there's a class of libraries, typically called "curses" which
try to abstract such things. Perhaps a search on the Tcl wiki

<http://wiki.tcl.tk/_/search?S=curses>

might inspire you.

Regards
-- t

Asif

unread,
Jul 8, 2013, 2:18:42 PM7/8/13
to
On Tuesday, June 11, 2013 10:24:25 AM UTC-7, Me wrote:
> Thank you.

You might also consider looking at tcllib's term package.
0 new messages