You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 rivejä
292 B

  1. #!/usr/bin/env python
  2. try:
  3. import readline
  4. except ImportError:
  5. print("Module readline not available.")
  6. readline = None
  7. else:
  8. if "libedit" in readline.__doc__ :
  9. readline.parse_and_bind("bind ^I rl_complete")
  10. else :
  11. readline.parse_and_bind("tab: complete")