Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Tab/backspace handling #2

@weberc2

Description

@weberc2

When I run this program...

package main

import (
    "github.com/mitchellh/cli"
    "os"
)

func main() {
    ui := cli.BasicUi{os.Stdin, os.Stdout}
    ui.Ask(" >")
}

and press "tab" it seems to jump to the right 8 spaces, but pressing backspace causes it to delete only one of those spaces.

Additionally, if I type "asdf" and then press "tab" twice, pressing backspace several times will delete the tabs, the "Ask" prompt message (" >", in my case), but leave the "asdf" in its place. There seems to be a lot of abhorrent behavior around this.

I use terminator from the default repos in Ubuntu 10.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions