public inbox for
 help / color / mirror / Atom feed
* tab completion
@ 2007-08-08 19:59 Stan Cox
  0 siblings, 0 replies; only message in thread
From: Stan Cox @ 2007-08-08 19:59 UTC (permalink / raw)
  To: Frysk List

Tab completion is a feature of jline. sets it up by
defining a class FhpdCompletor which defines CLI.complete as the
completor.  This method uses heuristics to determine what is being
completed.  If the fhpd request line doesn't contain spaces then it is
assumed that request names are being completed.  This is done by
calling candidates.add to add each request names that match the
input thus far.  Then complete returns the position in the input line
where completion will continue to jline.  If request names are not being
completed then debugInfo.complete is called as the completor.  This
method interrogates the debuginfo to find candidate names.
DwarfDie.getScopeVarNames does most of the work of finding candidate
names.  candidates.add is called to add matching names.  Structure
members are handled specially by getScopeVarNames by returning the
structure members.   

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-08 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 19:59 tab completion Stan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).