\cX mimics CTRL- behaviour...
\cB for CTRL-B, \cC for CTRL-C.
BTW this stuff is mentioned in perlop.
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur. | [reply] [d/l] [select] |
I tried the \cB and \cC, but it still doesn't work. I think this has something to do with the way I'm sending the data. Again, typing everything in HyperTerminal works fine. Is there some "Perl terminal emulation mode"? -- whatever that means. Does terminal emulation send data in a "special/different" way than IO:SOCKET?
-about to go nuts-
Vic
| [reply] [d/l] [select] |
Did you try just sending the ascii value of ctrl-c? Maybe using pack? (print \002; works too, no?)
| [reply] [d/l] |
Thanks for your help guys. I got it work. It was indeed the \c character that solved the issue.
| [reply] [d/l] |
Connect Hyperterminal to your Perl program (Socket modified to listen) and *read* the
shit that comes out of the sewer. And it could make a difference if you send \cB in one
Block and \cC in the next or if they are in the same Block. | [reply] |