Skip to content

Up key listener for prompt history #158

@lwestfall

Description

@lwestfall

Hi, apologies in advance if this is just a flag I didn't set or something, I couldn't find anything in the docs.

I have a prompt and I'd like to hit the up key to go through my input history (within the lifetime of the program). Right now it appears to do nothing. Am I missing something or is this unavailable?

Example:

var cmdString1 = AnsiConsole.Ask<string>("What do you want to do?").Trim().ToLower();
// user enters a command
var cmdString2 = AnsiConsole.Ask<string>("Now What?").Trim().ToLower();
// user is unable to hit up key to get previously entered input(s)

Please upvote 👍 this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions