Retrieving data from terminal