In reply to Erstwhile:
I'm back in Turkey now, both Istanbul airports have computer terminals to buy a visa, $20 for all. I presume it will be the same for other airports. First visa I have brought for Turkey for a few years as I have had a residence permit for the last 6 years