On Feb 19, 2008 4:31 PM, Dave Compton <[EMAIL PROTECTED]> wrote:
> Axel Liljencrantz <[EMAIL PROTECTED]> writes:
>
> > Thanks for sharing this. Is it OK if I update this message a bit and
> > put it up on the fish homepage?
>
> Hi Axel,
>
> By all means.
>
> Do you have any idea what might be causing the keyboard problems that I
> mentioned in my first message?  This pretty much prevents me from using fish 
> as
> an interactive shell.
>

This is usually caused by the terminal not doing what the terminfo
database says it will. There is a small and simple program distributed
with the fish tarball called key_reader that can tell you what
character sequence is generated by a keypress. I just noticed that the
build process broke for it in the latest release, you need to replace
the line

        $(CC) key_reader.o input_common.o common.o env_universal.o
env_universal_common.o wutil.o $(LDFLAGS) -o $@

in Makefile.in with

        $(CC) key_reader.o input_common.o common.o env_universal.o
env_universal_common.o wutil.o $(LDFLAGS_FISH) -o $@

After that, make it using 'make key_reader' and then run it.

After doing that, try pressing one of the buttons that don't work,
e.g. the up arrow. The sequence of characters generated from this can
then be bound to the correct action. This is done using the fish
builtin called bind. It accepts two arguments, the sequence and the
action. For example, if the sequence for up was 1b 5b 41 (in
hexadecimal) we might use this command:

bind \x1b\x5b\x41 up-or-search

Hope this helps!


Axel


> - Dave
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to