Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
141 Kevin 1
#!/usr/bin/python
2
 
3
#
4
# This file contains definitions that describe the output of your esh.
5
#
6
# You may adapt all settings in this file to match the output of your
7
# shell. (Alternatively, you may write your shell to match these templates.)
8
#
9
 
10
# the shell executable.
11
shell = "./esh"
12
 
13
# the prompt printed by your shell
14
prompt = "esh>"
15
 
16
#
17
# a regexp matching the message printed when a job is sent into the background
18
# must capture (jobid, processid)
19
#
20
bgjob_regex = "\[(\d+)\] (\d+)"
21
 
22
#
23
# a regexp matching a job status when printed using the 'jobs' command
24
# must capture (jobid, jobstatus, commandline)
25
#
26
job_status_regex =  "\[(\d+)\].?\s+(\S+)\s+\((.+?)\)\r\n"
27
 
28
#
29
# job status messages
30
#
31
jobs_status_msg = {
32
    'stopped' : "Stopped",
33
    'running' : "Running"
34
}
35
 
36
#
37
# builtin commands
38
#
39
# Use printf-style formats. stop, kill, fg, and bg expect job ids.
40
# If your shell requires a % before the jobid, use %%%s.
41
#
42
builtin_commands = {
43
    'jobs' : 'jobs',
44
    'stop' : 'stop %s',
45
    'kill' : 'kill %s',
46
    'fg'   : 'fg %s',
47
    'bg'   : 'bg %s'
48
}