Open
Description
Right now there's no simple way to decide whether Enter
should accept or open a new line based on the content of the text.
It seems like a very useful feature in general. For example, to write something like ptpython (that doesn't seem to use this feature)
Please correct me if I'm wrong about that.
Also, right now is_true(self.multiline)
is called about 10 times for each character pressed. You really only need to call it once.