Mailing List Archive

passing ctrl+z key combination
hi,

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 ?



--jer
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: passing ctrl+z key combination [ In reply to ]
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>