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 1463 2011-06-24 22:58:30Z stsci_embray $
RLW, 2000 February 13
|
|
char2lab = {'\x01': 'Control-a', '\x02': 'Control-b', '\x03': ...
|
|
|
lab2char = {'Control-a': '\x01', 'Control-b': '\x02', 'Control...
|
|
|
taskArgDict = {'lparam': 1, 'help': 1, 'eparam': 1, 'update': ...
|
|
|
pkgArgDict = {'?': 1}
|
|
|
completer = None
|
|
|
__package__ = 'pyraf'
|
|
|
char = '\x1a'
|
|
|
i = 26
|
|
|
ichar = 'z'
|
|
|
lab = 'Control-z'
|
Imports:
__builtin__,
__main__,
string,
re,
keyword,
glob,
os,
sys,
iraf,
minmatch,
readline,
Completer
char2lab
- Value:
{'\x01': 'Control-a',
'\x02': 'Control-b',
'\x03': 'Control-c',
'\x04': 'Control-d',
'\x05': 'Control-e',
'\x06': 'Control-f',
'\x07': 'Control-g',
'\x08': 'Control-h',
...
|
|
lab2char
- Value:
{'Control-a': '\x01',
'Control-b': '\x02',
'Control-c': '\x03',
'Control-d': '\x04',
'Control-e': '\x05',
'Control-f': '\x06',
'Control-g': '\x07',
'Control-h': '\x08',
...
|
|
taskArgDict
- Value:
{'lparam': 1, 'help': 1, 'eparam': 1, 'update': 1, 'unlearn': 1, 'flpr
cache': 1, 'dparam': 1, 'prcache': 1}
|
|