term.read_line() is not using the declared term to request the input. It relies on stdin. This is not the case of term.read_line_initial_text(""), which reads key one by one using self.read_key().
This commits corrects this behaviour, and removes divergence between the two methods.
If read_line and read_line_initial_text are meant to have a different behaviour, their documentation needs to be updated. I'd be glad to update this PR if that's the case.
term.read_line()
is not using the declared term to request the input. It relies on stdin. This is not the case ofterm.read_line_initial_text("")
, which reads key one by one usingself.read_key()
.This commits corrects this behaviour, and removes divergence between the two methods.
If
read_line
andread_line_initial_text
are meant to have a different behaviour, their documentation needs to be updated. I'd be glad to update this PR if that's the case.