I want to write a program like Putty to connect to Cisco router using netmiko library and Text tkinter widget as the editor.
My question is how to only allow user to type command at the end of Text but not elsewhere on the Text widget.
For example, my program connect, send show ip interface brief, receive the output and display it on the editor
Router# show ip interface brief
Interface     IP-Address     OK?  Method  Status                  Protocol
Ethernet0     10.108.00.5    YES  NVRAM   up                      up      
Ethernet1     unassigned     YES  unset   administratively down   down    
Loopback0     10.108.200.5   YES  NVRAM   up                      up
Router# <-- user can only type command from here
 
     
    