Design the user interface for mode switching and data entry any way that you like. For example, to switch an application from transmit mode to receive mode, you can give it special input or send it a signal (e.g., SIGUSR1). Make sure that your instructions in the README ?le plus the application's prompting and help facilities (if any) make the application simple to use.