Converting console-based interface to a windows-based GUI