cli icon indicating copy to clipboard operation
cli copied to clipboard

Cannot use cursor keys in input fields

Open dsyer opened this issue 12 years ago • 8 comments

$ gcf login

API endpoint> run.pivotal.io^^^^
...

^^^ Increasingly frustrated me trying to hit left arrow to go back to start of line.

What would be really useful would be something that respects normal bash behaviour (e.g. ctrl-A for start of line).

dsyer avatar Jan 21 '14 15:01 dsyer

Which OS / terminal app are you using, @dsyer?

scottruitt avatar Jan 21 '14 18:01 scottruitt

Ubuntu 12.04, normal terminal.

dsyer avatar Jan 21 '14 18:01 dsyer

Wow, just tested it on my end. That's absolutely awful. I'll get it fixed this week.

scottruitt avatar Jan 21 '14 19:01 scottruitt

Hi Dave,

There's no currently supported library for readline in Go, so we will need to write one. This is still on our radar, but won't be included in the 6.0.0 release. In the meantime, the delete key is your best bet.

tedsuo avatar Jan 22 '14 20:01 tedsuo

Suggest we close this issue until a good readline library in Go is implemented. We certainly haven't prioritized this work, and it doesn't seem likely that the team will be able to prioritize it for a while (even though I personally think this would be incredibly valuable).

tjarratt avatar May 02 '14 18:05 tjarratt

If someone implements readline in Go, we can reopen.

lcddave avatar May 16 '14 18:05 lcddave

Libraries on github claiming to support readline - https://github.com/search?q=readline+go

On Fri, May 16, 2014 at 11:45 AM, David Lee [email protected]:

Closed #59 https://github.com/cloudfoundry/cli/issues/59.

— Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry/cli/issues/59#event-122013947 .

Dr Nic Williams Stark & Wayne LLC - consultancy for Cloud Foundry users http://drnicwilliams.com http://starkandwayne.com cell +1 (415) 860-2185 twitter @drnic

drnic avatar May 16 '14 18:05 drnic

Looks like most of those are just bindings to the C library using CGO.

We really need a library that is written in pure go with support for windows. I've been hacking on one, but it's slow going.

Sent From A Very Small Keyboard

On May 16, 2014, at 11:58, Dr Nic Williams [email protected] wrote:

Libraries on github claiming to support readline - https://github.com/search?q=readline+go

On Fri, May 16, 2014 at 11:45 AM, David Lee [email protected]:

Closed #59 https://github.com/cloudfoundry/cli/issues/59.

— Reply to this email directly or view it on GitHubhttps://github.com/cloudfoundry/cli/issues/59#event-122013947 .

Dr Nic Williams Stark & Wayne LLC - consultancy for Cloud Foundry users http://drnicwilliams.com http://starkandwayne.com cell +1 (415) 860-2185 twitter @drnic — Reply to this email directly or view it on GitHub.

tjarratt avatar May 16 '14 22:05 tjarratt