Skip to content

Commit 64570f0

Browse files
Let group the window setting into a more logical position
1 parent a319bfa commit 64570f0

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

cli_changer.bat

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@echo off
2-
cls
32
setlocal EnableDelayedExpansion EnableExtensions
43

54

@@ -33,8 +32,20 @@ set $colorSuccess=0A
3332
set $colorWarning=0E
3433
set $colorFailure=0C
3534

36-
rem Set the title.
37-
title WampServer PHP CLI Version Changer v%$scriptVersion%
35+
36+
rem --------------------
37+
rem --------------------
38+
39+
rem --------------------
40+
rem Operation by TUI
41+
rem --------------------
42+
43+
rem Check if the TUI is being used.
44+
if %$cliMode% equ 0 (
45+
cls
46+
title WampServer PHP CLI Version Changer v%$scriptVersion%
47+
color %$colorNormal%
48+
)
3849

3950

4051
rem -----------------
@@ -187,9 +198,6 @@ rem ------------------------
187198
rem Display PHP Versions
188199
rem ------------------------
189200

190-
rem Set the window.
191-
color %$colorNormal%
192-
193201
rem Show the header.
194202
echo:
195203
echo Available PHP CLI Versions

0 commit comments

Comments
 (0)