未设置Linux TERM上的Powershell v2.0环境变量

时间:2018-11-29 17:06:30

标签: linux azure-devops powershell-v2.0

我正在VSTS上运行Powershell v2。*。托管的Ubuntu 1604

我未设置 TERM环境变量。

这是我的代码。任何想法都非常感谢。

<div class="div-wrap">
                            <div class="div-txt">
                                <img src="img/svgforlia/connect.svg" style="width: 36px; height: 36px;">
                                <p class="label" style="margin-top: 15px;">Connect</p>
                                <p>Wear Lia device on the shoulders, <br>turn on it and connect application <br>with device.</p>

                                <img src="img/svgforlia/calibrate.svg" style="width: 36px; height: 36px;">
                                <p class="label" style="margin-top: 15px;">Calibrate</p>
                                <p>After connection, set up calibration to <br>help device remember your upright <br>and slouch positions.</p>
                            </div>
                              <div class="div-img">
                                <img src="img/mockups/2.png" title="Image 1">
                                <img src="img/mockups/3.png" title="Image 2">
                                <img src="img/mockups/5.png" title="Image 3">
                                <img src="img/mockups/6.png" title="Image 4">
                                <img src="img/mockups/7.png" title="Image 5">
                                <img src="img/mockups/8.png" title="Image 6">
                                <img src="img/mockups/9.png" title="Image 7">
                                <img src="img/mockups/10.png" title="Image 8">
                              </div>
                            <div class="div-txt">
                                <img src="img/svgforlia/train.svg" style="width: 36px; height: 36px;">
                                <p class="label" style="color: #0065de; margin-top: 10px;">Train</p>
                                <p>Train your posture anytime you want, <br>set up daily goal to improve gradually <br>your posture.</p>
                                <img src="img/svgforlia/analyze.svg" style="width: 36px; height: 36px;">
                                <p class="label" style="margin-top: 15px;">Analyze</p>
                                <p>Statistics let you track and analyze the <br>progress you’ve made from first <br>training to the last.</p>
                            </div>
                        </div>

1 个答案:

答案 0 :(得分:0)

答案是删除 cls 语句! 另外,您不需要 $ env:TERM =“ xterm” 语句(将其删除)。 在Windows托管代理上可以,但在Linux上可以使用。与终端运行非交互式脚本时无法清除屏幕有关。