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?