stringparser / runtime

a runtime interface
4 stars 1 forks source link

No new line onPrompt completion #3

Closed stringparser closed 9 years ago

stringparser commented 10 years ago

The prompt is automatically moved to a new line when there are no matches.

Instead of printing all the completion text and go to a new line, it would be better to preserve the cursor position.

stringparser commented 9 years ago

Have to investigate further, the only solution that comes to mind is to change the handle for tabCompletion on readline module or save the cursor possition onkeypress for tabs and then, restore it. This last can be the solution.

stringparser commented 9 years ago

Not really. I was looking at it and even knowing the key the solution would be to monkeypatch the readline.Interface.output and thats is too much trouble for this. Closing it. Maybe I'll find something on the future.