I noticed when using user input, the cursor always shows below the request for the user to input information. Not sure I'm placing this so it should request on the same link as the user input -
Example:
import os
while true:
echo "Enter a file path > "
let file_path = readLine(stdin)
var x = 0
for (_, item) in walkDir(file_path):
echo item
inc(x)
sleep(500)
echo ""
echo "Number of itmes found: ", x
Use
write(stdout,"Enter a file path > ")
rather than
echo "Enter a file path > "