Dnia czwartek 18 styczeń 2007, Matthew Woehlke napisał:
> ...I am not a Vim hacker, but if you can rig Vim to handle some escape
> sequence, I may be able to help make Konsole understand/send them. A
> start might be to write a simple application that sends the sequence to
> turn on the function and then listens for them and takes some action
> (like beeping and/or printing a message with a time stamp) when it
> receives a notification. You could use that to test Konsole. (Read: if
> you write that, it will make me much more motivated to help you with
> hacking on Konsole :-).)

I am not Vim hacker, not even programmer. The only I am able to do is
simple shell thingy:

----------------------------
#!/bin/bash
read key
if [ `echo $key | grep '24' ` ]; then
        echo -e 'you got it'
fi
----------------------------

24 should be replaced by escape code, if code is coming from terminal
maybe it should be ``read -e``, not just ``read``. In addition you have
to manually press enter to go further :( Works with codes of function
keys. 

m.

Reply via email to