Taking input from Keyboard during runtime : one of the possible solutions (DPI-C) does not work for me :(...! Any more solutions

In reply to dave_59:

Is it possible to invoke a tcl script or tk window and have it ask user input during simulation ?
Or have a tcl proc change stdin from simulator and pass it on to the function/task (get specific number of inputs, like maybe 8 characters) and then hand over stdin back to the simulator ?