Why not simply place the `stdin.readLine` in another proc?
    
    
    proc readLineSafe(): Option[string] =
      try: return some(stdin.readLine()) except EOFError: return none[string]()
    
    
    Run

Then spawn that proc. 

Reply via email to