Replies: 2 comments 2 replies
-
|
Hi @rjGoTwins , As for invoking |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I've noticed that when using the I doubt you would ever get anything like a direct QSHELL terminal in VSCode since QSHELL only works through 5250. It doesn't interact as a real TTY, so none of the arrow stuff would ever work. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to detach a PASE terminal to a separate window, or to start a new one detached?
I like to have a prompt with the current directory displayed. I use the code below in my .profile to set it based on which shell I'm running. This works fine in the bash shell started by Code for i, and works fine in either PASE or QSHELL on the green screen. But if I enter QSHELL from the bash shell started by Code for i (or SSH Terminal started from ACS for that matter), I no longer see any prompt at all, even if I export PS1 with a new value. Is there any way to set a prompt after running the qsh command in the bash shell?
#set the command prompt
#get portion of host name before any .
SHORTHOST="${HOSTNAME%%.*}"
#test for QSHELL
case $QSH_VERSION in
in QSHELL
V*)
PS1='$SHORTHOST qsh $PWD > '
;;
not in QSHELL
*)
case $SHELL in
in a bash shell
bash)
PS1='\u@\h \s $PWD > '
;;
not in bash shell
)
)
if [ '$SHORTHOST' = '' ]
then
PS1='${SHELL##/} $PWD > '
else
PS1='$SHORTHOST ${SHELL##/} $PWD > '
fi
;;
esac
esac
export PS1
Beta Was this translation helpful? Give feedback.
All reactions