Lusternia's newline after prompt feature

Post Reply
User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Lusternia's newline after prompt feature

Post by Vadi »

Just a small thing that tripped me up: lusternia has a config prompt option where it'll add a newline after the prompt, line so:
promptline
Instead of the usual:
promptline
Which means that isPrompt() is not true on the promptline, but it is true on the blank line after that (because it's the last line in the transmission). So if you expect the actual prompt line to be the current line being processed when isPrompt() is true - you'll be wrong in that expectation.

Post Reply