[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

Re: passing ctrl+z key combination

Greg A. Woods woods@weird.com
Fri, 23 Oct 2009 01:05:42 GMT


At Thu, 22 Oct 2009 13:43:48 -0400 (EDT), Jeremy Eder <jeder@redhat.com> wrote:
Subject: passing ctrl+z key combination
> 
> im looking to pass ctrl+z to a server - console man page says 
> 
> 1) escape sequence (mine is default 'control-E c'')
> 2) then type \ooo where ooo is a 3-digit octal code for the keystroke.
> 
> according to http://en.wikipedia.org/wiki/Control-Z the octal code for ctrl+z should be 32.
> 
> so after typing the escape sequence, typing 
> 
> \032
> 
> does not seem to send a ctrl+z.  
> 
> any ideas ?

Why not just type <CTRL-Z> plain and simple?

It works for me:

      $ console historically
      [Enter `^Ec?' for help]
      [-- MOTD -- Welcome to Weird consoles!]
      #
      # cat
      ^Z[1] + Stopped              cat

Of course typing "<CTRL-E>\032" also works for me:

      # cat
      [quote \032]^Z[1] + Stopped              cat

-- 
						Greg A. Woods

+1 416 218-0098                VE3TCP          RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>      Secrets of the Weird <woods@weird.com>

Attachment: pgp39mfozL0Ke.pgp
Description: PGP signature