Package pyraf :: Module irafcompleter
[hide private]
[frames] | no frames]

Module irafcompleter

source code

irafcompleter.py: command-line completion for pyraf

Does taskname and filename completion using tab key.

Another thought would be to use raw_input to do the input when IRAF tasks prompt for input, and to use a special completer function that just completes filenames (but knows about IRAF virtual filenames as well as the native file system.)

See the notes in the (standard Python) module rlcompleter.py for more information.

$Id: irafcompleter.py 733 2006-04-26 18:20:43Z jmiller $

RLW, 2000 February 13

Classes [hide private]
  IrafCompleter
Functions [hide private]
 
activate(c="\t") source code
 
deactivate() source code
Variables [hide private]
  char2lab = {}
  lab2char = {}
  taskArgDict = minmatch.MinMatchDict({'unlearn': 1, 'eparam': 1...
  pkgArgDict = {'?': 1,}
  completer = None

Imports: Completer, readline, __builtin__, __main__, string, re, keyword, glob, os, sys, iraf, minmatch


Variables Details [hide private]

taskArgDict

Value:
minmatch.MinMatchDict({'unlearn': 1, 'eparam': 1, 'lparam': 1, 'dparam\
': 1, 'update': 1, 'help': 1, 'prcache': 1, 'flprcache': 1,})