Forum Discussion

BGrat's avatar
BGrat
Icon for New Contributor rankNew Contributor
6 years ago

What is 'stdin' when using System Console?

Hello,

I am new to tcl scripting. Everything works as expected except gets. It hangs every single time. I am guessing that stdin is not set to input from the keyboard or something like that. If someone could help me understand why this simple code hangs, I would appreciate it.

System: Windows 10, Quartus 18.0 build 261

puts "Hello World."
puts "Enter your name:"
gets stdin name
puts "Hello $name"

3 Replies