sensekey works only with ASCII characters (1 byte). The arrow keys are 2 bytes characters, so sensekey interprets (erroneously) this event as a sequence of two ascii-chars. Idem for the F-keys (F1, F2, ...). The command man ascii shows the list of the ascii-chars and their codes. tito On Fri, Dec 09, 2011 at 05:50:41PM +0100, k_o_m_p wrote: > Hello, > when using senseky there is a difference between > the ASCII numbers sensekey sends using qutecsound > or using the terminal. qutecsound recognizes arrow > up/down keys as ASCII numbers 30 and 31 while the > terminal sends two numbers 27 and 91 for arrow up > and the same 27 and 91 for arrow down. Does anyone > knows an explanation for this? Is this a shell > configuration issue? > > I am using Csound version 5.14 (float samples) > Nov 7 2011 and qutecsound 0.6.1 on OS 10.6 > running csound on a tcsh shell. > > Here's the csound code I used to test it. > > Best, > > Luis > > > > > > > -odac -d -m0 > > > > > > instr 1 > > kres, kkeydown sensekey > > ktrig trigger kkeydown, .5, 0 > > printf "\n\n\t key number: %d", ktrig, kres > > endin > > > > > > i1 0 36000 > > > > > > > > -- > -- > http://luisantunespena.eu > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"