Re: code for control+...?

2003-11-16 Thread Roger Oberholtzer
On Sat, 2003-11-15 at 23:02, Jorge Almeida wrote: Although I use Tcl/Tk quite a bit, I have only used expect a bit. I would imagine there were some hooks to help with this. I have the Exploring Expect book, which doesn't seem to help in this specific matter. Expect does everything Tcl

code for control+...?

2003-11-15 Thread Jorge Almeida
Sorry for the probably stupid question, but it's killing me... I need to write a expect script where the pressing of the control key+ something needs to be detected. The man page has an example set CTRLZ \032 where the code \032 corresponds to Control-Z. Now, how can I know the codes

Re: code for control+...?

2003-11-15 Thread Chris Kassopulo
Jorge Almeida [EMAIL PROTECTED] wrote: Sorry for the probably stupid question, but it's killing me... I need to write a expect script where the pressing of the control key+ something needs to be detected. The man page has an example set CTRLZ \032 where the code \032 corresponds

Re: code for control+...?

2003-11-15 Thread Jorge Almeida
On Sat, 15 Nov 2003, Chris Kassopulo wrote: Jorge Almeida [EMAIL PROTECTED] wrote: Sorry for the probably stupid question, but it's killing me... I need to write a expect script where the pressing of the control key+ something needs to be detected. The man page has an example

Re: code for control+...?

2003-11-15 Thread Alan Jackson
On Sat, 15 Nov 2003 10:15:10 -0500 Chris Kassopulo [EMAIL PROTECTED] wrote: Jorge Almeida [EMAIL PROTECTED] wrote: Sorry for the probably stupid question, but it's killing me... I need to write a expect script where the pressing of the control key+ Greetings, Get yourself an ascii

Re: code for control+...?

2003-11-15 Thread Roger Oberholtzer
On Sat, 2003-11-15 at 14:05, Jorge Almeida wrote: Sorry for the probably stupid question, but it's killing me... I need to write a expect script where the pressing of the control key+ something needs to be detected. The man page has an example set CTRLZ \032 where the code \032

Re: code for control+...?

2003-11-15 Thread Jorge Almeida
On Sat, 15 Nov 2003, Roger Oberholtzer wrote: Are you trying to use 'bind'? No. Here is one very stupid trick I use to decode keypresses. Start vi, then press 'i', Then press Ctrl-v. Then press the key you want. Then press the escape key. Save the file. It will contain the keystroke. Dump