Skip to content

Commit

Permalink
Improve terminal color setting
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbls committed Jun 7, 2024
1 parent 49239f6 commit 5917a15
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sdm-phase1
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,14 @@ then
then
logtoboth "* Enter Shell Command Prompt"
logtoboth " 'exit' to exit back to host system"
IFS=":" read efg ebg ecursor <<< $ecolors
stermcolors "$efg" "$ebg" "$ecursor" x1
if [ "$ecolors" != "0" ]
then
IFS=":" read efg ebg ecursor <<< $ecolors
stermcolors "$efg" "$ebg" "$ecursor" x1
fi
bash -i
logtoboth "* Customization complete"
resetcolors x1
[ "$ecolors" != "0" ] && resetcolors x1
else
logtoboth "* Run bash on non-terminal standard input"
bash
Expand Down

0 comments on commit 5917a15

Please sign in to comment.