How to send control characters to shell?

In the documentation < https://documentation.xojo.com/api/os/shell.html#shell-canonical > it states that we can send control characters to the shell, but how does one actually do it? Do you use WriteLine? How do you write the control character (CTRL+C, ^C)?

Thank you kindly,
~Emily

ChrB(3) would be CTRL + C, so .write(CarB(3)).

This only works in interactive mode. Thanks :slight_smile:

Typo? Is this supposed to be:

.write(ChrB(3))

?

Yup a typo.

1 Like

I also found that it is .WriteLine ChrB(3), guess it needs that EndOfLine