Lusternia's newline after prompt feature

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

Lusternia's newline after prompt feature

Post by Vadi » Tue Sep 14, 2010 7:56 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest