Subject: Re: sending control-c - DN [1]
sergei_kucherov <sergei_kucherov@3com.com> - 25 Apr 2000 - comp.lang.tcl
According to "man ascii", \012 is a newline. What made you think it was a control-C? A hint is that control-A is "\001". If you use the vi or vim editors, you can enter a true control character in a file by typing control-V followed by control-whatever. I do this instead of trying to guess what numeric code it might be. (Note that I have my own print script that does "cat -v" at the beginning of a pipeline so that when I read the code from a printout I clearly see all control characters.) In article <3905A414.746D30DB@xedia.com>, Jeremy Mordkoff <mordkoff@xedia.com> wrote: > Why doesn't > > send -i $id "\012\012" > > send two control C's ? What is the correct method for sending control-c's? > > expect 5.28.1 on FreeBSD 2.2.8 > > JLM > > -- > Jeremy Mordkoff 978-263-0060 x139 > Xedia Corp http://www.xedia.com > > Sent via Deja.com http://www.deja.com/ Before you buy.
Last modified
2000-07-20
2000-07-20
(195.108.246.52)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
