import sys
import os
import jadsh.constants as constants

class Prompt():
    def __init__(self, promptChar = "$"):
        self.promptChar = promptChar

    def draw(self):
        pwd = os.getcwd()
        sys.stdout.write(pwd + ":" + self.promptChar + ' ')
        sys.stdout.flush()

@@ -280,8 +280,323 @@
 flush()%0A
+%0A%09def hilite(self, string, status = False, bold = False):%0A        attr = %5B%5D%0A        if status:%0A            # green%0A            attr.append('32')%0A        else:%0A            # red%0A            attr.append('31')%0A        if bold:%0A            attr.append('1')%0A        return '%5Cx1b%5B%25sm%25s%5Cx1b%5B0m' %25 (';'.join(attr), string)%0A

Add hilite function to prompt