c - tclreadline - insert-completions -
I am using tclreadline to complete my project, which is written in C / C ++ and TCL I had to modify some configurations to deal with Redline 6.2, but I managed it.
I have 3 problems:
-
I like TCL interpreter like
get_portsandget_modules.If I type
get_por, then it correctly executesget_ports, but history saysget_por.If I type
get_por -of_objects [get_mod], then it executes correctlyget_ports -of_objects [get_modules], but history says Isget_por -of_objects [get_mod]. So this order has not been expanded before adding it to history. How do I manage it? -
If I type [get_mod] of get_por, then it does not extend
ofin- Of_objects, because I check-of_objectsinside the command and it does not appear. How do I manage theINSERT-COMPLETIONSreadline method? Or alternatively,INSERT-ALL-COMPLETIONS -
If I type
get_por-ofTAB , there is an error in theScriptCompleterin the tclreadline, which says thatget_poris not a command, it should complete the command first, and then complete the option , Which is defined inproc complete (get_ports).
Comments
Post a Comment