If so, the if would work. Can't have it both ways. Which one is it? Does $input contain "\e[C\n" or does the if work?
Note that it shouldn't contain what you said it contains. There shouldn't be a trailing "\n".
In reply to Re^9: Regex arrow key problem
by ikegami
in thread Regex arrow key problem
by austin43
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |