Netmiko goes to CONF T automatically! with ASA switches
Solution 1:
It should automatically exit configuration mode after this i.e. after changing the terminal width, Netmiko will exit configuration mode. Alternatively you could set auto_allow_change=False
as an argument to ConnectHandler (and then it won't change the terminal width).
This is assuming Netmiko 3.4.0