diff options
| author | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
| commit | b786f20bbab5a59046aa78a2c6c2a11536497202 (patch) | |
| tree | 0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /module/complete.m | |
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'module/complete.m')
| -rw-r--r-- | module/complete.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/module/complete.m b/module/complete.m new file mode 100644 index 0000000..82495ef --- /dev/null +++ b/module/complete.m @@ -0,0 +1,15 @@ +Complete: module +{ + PATH: con "/dis/lib/complete.dis"; + + Completion: adt { + advance: int; # whether forward progress has been made + complete: int; # whether the completion now represents a file or directory + str: string; # string to advance, suffixed " " (file) or "/" (directory) + nmatch: int; # number of files that matched + filename: array of string; # their names + }; + + init: fn(); + complete: fn(dir, s: string): (ref Completion, string); +}; |
