Terminal widget doesn't update properly

So i am using the terminal.print() function to print text into the terminal when a button has been pressed. If i press the button once, the terminal doesn’t update but it will update after i’ve pressed the button a number of times. Is there any way for me to update the terminal as soon as the button is pressed? Sometimes the text that is supposed to print is cut off.

Sounds like a coding issue, but we’d need to see your code to be able to help.

Pete.

I have to ask… how much text is being sent to terminal.print ?

@lieuloo: Do you have “terminal.flush();” included after the last print statement to make sure that everything is sent?

1 Like

Thanks guys for the responses, so adding “terminal.flush();” after the print statement worked. Thanks again @IBK.