cli-menu icon indicating copy to clipboard operation
cli-menu copied to clipboard

setPromptText - multiline support

Open simonovich opened this issue 3 years ago • 4 comments

Can you please suggest how to make multiline text for promt?

The example below breaks the menu:

$itemCallable = function (CliMenu $menu) {
    $result = $menu->askText()
        ->setPromptText("Text line 1\nText line 2\nText line 3")
        ->setPlaceholderText('')
        ->ask();

    var_dump($result->fetch());
};

Basic.php

simonovich avatar Jul 15 '22 12:07 simonovich

It appears it's not handled/supported

AydinHassan avatar Jul 15 '22 13:07 AydinHassan

Right. But is it possible to implement such a function in the future?

simonovich avatar Jul 15 '22 13:07 simonovich

We will happily accept PR's but I don't imagine the maintainers will be working on it in the foreseeable future.

AydinHassan avatar Jul 15 '22 13:07 AydinHassan

Es tut mir so leid )

simonovich avatar Jul 15 '22 13:07 simonovich