27 #define ESCAPE_CHAR _T("\\") 28 #define CURRENT_PATH_ALIAS_CHAR _T("w") 29 #define CURRENT_PATH_ALIAS ESCAPE_CHAR CURRENT_PATH_ALIAS_CHAR 30 #define DEFAULT_PROMPT CURRENT_PATH_ALIAS _T("\n# ") 72 const TCHAR *pszCurrentPath;
79 rConsole.
Write(pszCurrentPath?pszCurrentPath:
_T(
"NULL (Internal Error)"));
HRESULT SetPrompt(LPCTSTR pszPrompt)
void ShowPrompt(CConsole &rConsole)
const TCHAR * GetCurrentPath() const
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
CPrompt(CRegistryTree &rTree, HRESULT &rhr)
#define CURRENT_PATH_ALIAS
size_t __cdecl _tcslen(const _TCHAR *str)
static LPCTSTR GetDefaultPrompt()
BOOL Write(const TCHAR *p, DWORD dwChars=0)
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)