You Can Detect if Code Is Being Run Inside a Terminal

Most programming languages have a way to detect if code is being run in a terminal.