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:
Expired
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Last query:
2019-10-07
Last reply:
2019-10-23

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.

Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.