Please Note:

The text on this page was translated by translation software. A revised version from our editors will be available soon.

This article explains how to edit files from the serial console.

The edit command originates from DOS times and allows editing files.

With the following command you can edit the text file C:\Test.txt.

edit C:\Test.txt 
Special characters:

Editing in a text-based application via a terminal has a few pitfalls. For example, if you enter a backslash with a German keyboard, a ß (SZ) will appear stubbornly instead. Similar behavior occurs for all other characters that are normally available via the AltGr key, including: ~ [ ] { } @

The problem arises when passing the control commands required for the special characters through the terminal emulation and the command prompt to the application, in this case Edit. This behavior may also occur with other editors/applications. However, there should be no problems at the command prompt directly.

However, in order to enter a backslash, for example, the control commands listed in the table below must be converted. For a backslash, normally press[AltGr]+ß. In the terminal environment you need the combination[Alt]+ß.

According to the table you get[Alt] by pressing[Esc] and then[Ctrl]+A. Only the key sequence immediately after[Esc] (in this case[Ctrl]+A) must be pressed simultaneously ([Esc] must be released before). Then press the key with the desired character, i.e. ß for the backslash or q for @.

To exit (and save) Edit, press[Alt]+F, that is: Esc],[Ctrl]+A and then F. This opens the Edit file menu, where you can save the edited file and/or close Edit.

Function Escape Sequence
Pos1 Esc h
End Esc k
Ins Esc +
Del Esc -
Image on Esc?
Picture from Esc /
Alt Esc Ctrl A
Ctrl Esc Ctrl C
F1 Esc 1
F2 Esc 2
F3 Esc 3
F4 Esc 4
F5 Esc 5
F6 Esc 6
F7 Esc 7
F8 Esc 8
F9 Esc 9
F10 Esc 0
F11 Esc !
F12 Esc @