How to insert control characters into gedit?

Asked by Christopher Yeleighton

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:
Last reply:
Revision history for this message
Christopher Yeleighton (giecrilj) said :
#1

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.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

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