If you read the code [0], the author is using the phrase "Linux text console" to mean the Unix tty interface (/dev/tty, ANSI escape sequences, TIOCGWINSZ ioctl, etc). So it probably is portable to other Unix-like systems such as *BSD, macOS, Cygwin, etc, without much effort.
Not portable. Oh, well. Nice idea.