Skip to content

Wrong keyboard mapping in command line #57

@kaieberl

Description

@kaieberl

System: macOS 14.3.1 on Macbook Air M2
Terminal: reproduced in iTerm as well as native Terminal
Command:

./gemma \
--tokenizer tokenizer.spm \
--compressed_weights 2b-it-sfp.sbs \
--model 2b-it

When I try to navigate in the chat input using the arrow keys, it doesn't work and I get codes like ^[[D for the left arrow key.
Also, I cannot add new lines in my prompt using Shift+Enter, and when I insert text from the clipboard containing new lines, I get multiple invocations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions