- Aug
- 2,799
- 144
I have been using this prompt successfully for many years in TCC.
This prompt jumps to the bottom of the screen via ANSI ESC[9999E (Cursor Next Line capped at last line),
then displays the current directory,
in a shortened format.
Now, I want to have a prompt that also displays the parent process (the process that started TCC);
I could not figure out how to do this using just the PROMPT,
so I did a work-around...
The reason I want to display the _parent before each prompt,
when I execute the newshell alias,
I want to know what the parent is.
This works,
but if anyone knows how to do the same thing,
using only the Prompt,
sharing how to do this would be appreciated.
Joe
Code:
E:\...\TCC_Stuff>set prompt
$e[9999E$w$g
This prompt jumps to the bottom of the screen via ANSI ESC[9999E (Cursor Next Line capped at last line),
then displays the current directory,
in a shortened format.
Now, I want to have a prompt that also displays the parent process (the process that started TCC);
Code:
C:\WINDOWS\Explorer.EXE
E:\...\TCC_Stuff>
I could not figure out how to do this using just the PROMPT,
so I did a work-around...
Code:
E:\...\TCC_Stuff>which post_exec
post_exec is an alias : e:\utils\post_exec.btm
C:\WINDOWS\Explorer.EXE
E:\...\TCC_Stuff>type e:\utils\post_exec.btm
@echo off
echo %_parent
The reason I want to display the _parent before each prompt,
when I execute the newshell alias,
I want to know what the parent is.
Code:
R:\>which newshell
newshell is an alias : "%_cmdspec" /i e:\utils\newshell.btm
R:\>type e:\utils\newshell.btm
@echo off
alias post_exec=e:\utils\post_exec.btm
echo %_parent
This works,
but if anyone knows how to do the same thing,
using only the Prompt,
sharing how to do this would be appreciated.
Joe