Article ID: 000086274 Content Type: Troubleshooting Last Reviewed: 03/15/2019

Why can't I use VT100 escape codes in NIOS II terminal?

Environment

    Quartus® II Subscription Edition
    Nios® II Embedded Design Suite (EDS)
    Nios® II Processor
    Nios® II (Classic) Processor
BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

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.

Resolution

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.

 

Related Products

This article applies to 1 products

Intel® Programmable Devices

1