You are totally right. Going even way back, in days of TurboPascal, you could include graphics.h and get a very cool snake game going within half an hour. Today, doing anything like that is a week of advanced stuff. Someone wanted to recreated that experience today and came up with this: https://github.com/dascandy/pixel
But as you can see how much boiler plate was needed to be written for them to write this.
https://github.com/dascandy/pixel/blob/master/examples/simpl...
See the user example and then look at src for boilder plate.
In old days, you could easily write a full operating system from scratch on 8051 while use PS/2 peripherals. Today, all peripherals are USB and USB 2.0 standard is 500 pages long.
I also agree that we have left behind the idea of teaching probably or at least removed it from the mainstream.