Closed tranzystorekk closed 8 months ago
I'm trying to get a multiline prompt that inserts a newline after command output for visual clarity.
With the following prompt config:
local function doPrompt(fail) hilbish.prompt(lunacolors.format( '\n{blue}%u {cyan}%d\n' .. (fail and '{red}' or '{green}') .. '∆ ' )) end
Instead of an empty line after command I'm getting a "highlighted" prompt triangle:
hilbish outputs that for lines that don't have a newline.
it would probably be better to use the command.exit hook:
command.exit
bait.catch('command.exit', function() print '' end)
I'm trying to get a multiline prompt that inserts a newline after command output for visual clarity.
With the following prompt config:
Instead of an empty line after command I'm getting a "highlighted" prompt triangle: