When a program using plplot is run without a device specified (or with an unknown device), the program produces a list of devices and prompts for a device.

Is there any way to get that list to a program (e.g. to put them into a selector widget, or to find available print-like devices)? [Preferably to Fortran].