login about faq

How do I send control characters like CTRL-Z ? I tried sending \u001a in channelSendString and channelSendData, but that does not seem to work..

asked Jan 29 '13 at 13:59

melvin's gravatar image


edited Jan 29 '13 at 13:59

Thanks.. I figured it out.. I used ChannelSendData and sent the hex character for CTRL-Z

char bytes[1] = {'\x1a'};

NSData *data = [NSData dataWithBytes:bytes length:1];

[ssh ChannelSendData:[NSNumber numberWithInt: channelNum] data:data];


answered Jan 31 '13 at 14:26

melvin's gravatar image


edited Jan 31 '13 at 17:16

Thanks Melvin! For some reason I thought you had tried that when you described sending \u001a via channelSendData

(Jan 31 '13 at 21:28) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 29 '13 at 13:59

Seen: 1,855 times

Last updated: Jan 31 '13 at 21:28

powered by OSQA