It was a strangely 20th century coup, defeated by 21st century technology and people power.

When a self-styled military "Peace Council" tried to topple Turkish President Tayyip Erdogan and his increasingly authoritarian government on Friday night, the rebel generals and colonels seemed to be fighting the last war.

"This coup was obviously planned quite well but using a playbook from the 1970s," said Gareth Jenkins, a researcher and writer on military affairs based in Istanbul.