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 -- http://mail.python.org/mailman/listinfo/python-list