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_ports
andget_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
of
in- Of_objects
, because I check-of_objects
inside the command and it does not appear. How do I manage theINSERT-COMPLETIONS
readline method? Or alternatively,INSERT-ALL-COMPLETIONS
-
If I type
get_por-of
TAB , there is an error in theScriptCompleter
in the tclreadline, which says thatget_por
is 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