This is a FileHandle interface implementation and retarget registration of the stdio interface to the Segger Real-Time Terminal (RTT) instead of the default serial port.
Further information about the background of the implementation can be found in Pull Request #5356 and Pull Request #5571.