How to insert control characters into gedit?

Asked by Christopher Yeleighton on 2019-10-07

How can one insert control characters like ^[ or ^G into a file?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2019-10-07
Last reply:

Workaround:
In order to insert ^[, type [Shift [Ctrl [U]]] [1] [b] [Enter].
In order to insert ^G, type [Shift [Ctrl [U]]] [7] [Enter].
In general, in order to insert ^X, find the number by evaluating the expression ('%x' % (b'X' [0] - b'@' [0])) in the Python console.

Can you help with this problem?

Provide an answer of your own, or ask Christopher Yeleighton for more information if necessary.

To post a message you must log in.