Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2008, 3:01:49 AM (16 years ago)
Author:
landauf
Message:

cool stuff: autocompletion works with filesystem (has to be tested on other systems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/ConsoleCommandCompilation.cc

    r1341 r1436  
    3434namespace orxonox
    3535{
    36     SetConsoleCommandShortcutExtern(source);
     36    SetConsoleCommandShortcutExtern(source).setArgumentCompleter(0, autocompletion::files());
    3737    SetConsoleCommandShortcutExtern(echo);
    3838    SetConsoleCommandShortcutExtern(puts);
    3939
    40     SetConsoleCommandShortcutExtern(read);
    41     SetConsoleCommandShortcutExtern(append);
    42     SetConsoleCommandShortcutExtern(write);
     40    SetConsoleCommandShortcutExtern(read).setArgumentCompleter(0, autocompletion::files());
     41    SetConsoleCommandShortcutExtern(append).setArgumentCompleter(0, autocompletion::files());
     42    SetConsoleCommandShortcutExtern(write).setArgumentCompleter(0, autocompletion::files());
    4343
    4444    SetConsoleCommandShortcutExtern(calculate);
Note: See TracChangeset for help on using the changeset viewer.