This question mentions a flight that had to divert, in that case to Iqaluit (YFB).
I was wondering: in modern large airliners, what is the user interface like when diverting? How is the case of "what is the nearest airport/runway we can divert to now?" handled in the avionics displays?
Does the computer system know at all times what the nearest runway or airport is? Does that information appear when needed, or perhaps it's just continually displayed and updated at all times?
Does the system understand subtleties such as which one is best based on your current heading, altitude and so on? Or do pilots just have to quickly look up the nearest one with no special help from the avionics?
Or, is it figured out for each stage, as part of the preflight planning? Do they have it written down as part of a flight plan? Or does the crew have to program in a list of suitable diversion airports along the coming route, and if the worst happens the system will tell you which one (of that set) is nearest now?
In fact, is there just a big red button marked "Divert Now", and the plane immediately changes course to whatever it decides is the nearest and/or best diversion prospect at that moment?
To be clear, I'm talking about how it works in this sort of cockpit:
(To a civilian, most modern airplane controls look like that: touchscreens with some sort of graphical user interface.)