wharfee
wharfee copied to clipboard
Issue 147 resolved
To solve the problem, we need to add a condition to check if the terminal is interactive before printing the message 'Interactive terminal is closed.'. This can be done by checking the presence of the '-i' or '-t' switches or any other relevant condition that determines interactivity.
To solve the problem, we need to modify the on_after_interactive
function to check if the terminal was interactive before returning the message 'Interactive terminal is closed.'. Specifically, we need to add a condition to check if is_interactive
or is_tty
is True before setting the message.
To solve the problem, we need to add a conditional check to verify if the '-i' or '-t' switch is present in the options before printing the 'Interactive terminal is closed.' message.