The following code is a derivative work of the code from One Lone Coder Tetris Clone, which is licensed GPLv3. This code therefore is also licensed under the terms of the GNU Public License, verison 3.
#Instructions
https://en.wikipedia.org/wiki/Ncursesi
https://invisible-island.net/ncurses/
I used homebrew on Mac: brew install ncurses
clang++ -std=c++17 -fdiagnostics-color=always -g /Users/robert/development/c++/tetris/tetris.cpp -o /Users/robert/development/c++/tetris/tetris -lncurses
Hope you like it.