Using "Virtual" Terminals In Rtt; Using Text Control Codes - Segger J-Link User Manual

Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

101
Menu entry
–> Windows format (CR
+LF)
–> Unix format (LF)
–> Mac format (CR)
–> None
Input -> Echo input...
–> Echo to "All Termi-
nals"
–> Echo to "Terminal 0"
Logging menu elements
Menu entry
-> Start Terminal log-
ging...
-> Stop Terminal logging Stops logging terminal data and closes the file.
-> Start Data logging...
-> Stop Data logging
Help menu elements
Menu entry
-> About...
-> J-Link Manual...
-> RTT Webpage...
Tab context menu elements
Menu entry
-> Close Terminal
-> Clear Terminal
3.7.9

Using "virtual" Terminals in RTT

For virtual Terminals the target application needs only Up Channel 0. This is especially
important on targets with low RAM.
If nothing is configured, all data is sent to Terminal 0.
The Terminal to output all following via Write, WriteString or printf can be set with SEG-
GER_RTT_SetTerminal().
Output of only one string via a specific Terminal can be done with SEGGER_RTT_Termi-
nalOut().
The sequences sent to change the Terminal are interpreted by RTT Viewer. Other applica-
tions like a Telnet Client will ignore them.
3.7.10

Using Text Control Codes

RTT allows using Text Control Codes (ANSI escape codes) to configure the display of text.
RTT Viewer supports changing the text color and background color and can erase the Ter-
minal. These Control Codes are pre-defined in the RTT application and can easily be used
in the application.
J-Link / J-Trace (UM08001)
CHAPTER 3
Contents
Selects the end of line character to be sent on En-
ter.
If checked, sent input will be displayed in the All
Terminals Tab.
If checked, sent input will be displayed in the Ter-
minal Tab 0.
Contents
Starts logging terminal data to a file.
Starts logging data of Channel 1 to a file.
Stops logging data and closes the file.
Contents
Shows version info of RTT Viewer.
Opens the J-Link Manual PDF file.
Opens the RTT webpage.
Closes this Terminal Tab
Clears the displayed output of this Terminal Tab.
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Contents
J-Link RTT Viewer
Shortcut
Shortcut
F5
Shift-F5
F6
Shift-F6
Shortcut
F12
F11
F10
Shortcut
Alt-W
Alt-R

Advertisement

Table of Contents

Troubleshooting

loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

This manual is also suitable for:

J-trace

Table of Contents

Save PDF