Obnoxious postings from Google Groups

Hans Mulder hansmu at xs4all.nl
Fri Nov 9 10:49:41 CET 2012


On 6/11/12 23:50:59, Steven D'Aprano wrote:
> On Tue, 06 Nov 2012 17:16:44 +0000, Prasad, Ramit wrote:
> 
>>> To enter the newline, I typed Ctrl-Q to tell bash to treat the next
>>> character as a literal, and then typed Ctrl-J to get a newline.
>>
>> That sounds complicated, my version of bash lets me type
>> 'foo<enter>bar'<enter> for the same effect.
> 
> Well, I learned something new about bash.
> 
> On the other hand, the Ctrl-Q next-char-is-literal trick works for 
> entering control characters that otherwise don't have a key on the 
> keyboard.

How does that trick work?  If I need a control character
that is not available in my current keyboard mapping, how
would I enter such a character using this Ctrl-Q trick?


Just wondering,

-- HansM


More information about the Python-list mailing list