I am new to tcl and I'm trying to prompt a users input. I've looked at loads of examples on the web but nothing seems to work.
I've tried the following code:
The output on Wish85 is giving:
Enter your name:
Hello
So for what ever reason the script is not asking for a user input.
Does anyone know why? I assume the code is wrong.
I've tried the following code:
Code:
puts "Enter your name: "
flush stdout
set name [gets stdin]
puts "Hello $name"
Enter your name:
Hello
So for what ever reason the script is not asking for a user input.
Does anyone know why? I assume the code is wrong.