VT100 escape control codes are used to control terminal in terms of cursor movement, font color, erasing, etc...
When these codes are used with NIOS® II terminal or NIOS II EDS console, the printf function will print the code as it is. For example:
printf("\033[2K\r");
This code must erase the current line in terminal. However the output of terminal would be [2k.
The reason behind this behavior is the terminal properites. NIOS II terminal and EDS console do not support this feature.
If you want to use the VT100 escape codes with NIOS II, a UART RS232 or 16550 can be utilized with external UART port. Then an external terminal can be used to fetch the escape control codes.