get terminal data from file