libcli
libcli copied to clipboard
Buffer and print also what follows the last newline
_print() saves in cli->buffer whatever follows the last newline, but then just throws it away on the next call. Use cli->buffer by copying it in front of the new input.