Skip to content

Commit 54eb275

Browse files
committed
release: v1.0.0-beta3-build4
1 parent 415197c commit 54eb275

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-beta3-build3
1+
1.0.0-beta3-build4

changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## v1.0.0-beta3-build3
1+
## v1.0.0-beta3-build4
22

33
### 🐛 Bug Fixes
4-
- Add missing `config_checksum_mismatch`, `config_verify_success`, `config_checksum_not_found`, `config_verify_failed` keys to PS1 fallback dictionary (JSON and .sh files already had them, but PS1 hardcoded fallback was missing them)
4+
- Fix PS1 TUI menu clearing: replace `Write-Host (" " * WindowWidth)` with `[Console]::Write("`r{0}"...)` for reliable line clearing with wide characters (Chinese, Japanese, Korean) in Select-Language, Show-ProfileMenu, Show-SoftwareMenu

dist/quickstart.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ param(
4242
[switch]$showVersion
4343
)
4444

45-
$VERSION = "1.0.0-beta3-build3"
46-
if ($VERSION -eq "1.0.0-beta3-build3") {
45+
$VERSION = "1.0.0-beta3-build4"
46+
if ($VERSION -eq "1.0.0-beta3-build4") {
4747
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4848
$versionFile = Join-Path $scriptDir "..\VERSION"
4949
if (Test-Path $versionFile) {
@@ -232,7 +232,7 @@ function Select-Language {
232232
$totalLines = $numLangs + 3
233233
for ($i = 0; $i -lt $totalLines; $i++) {
234234
[Console]::SetCursorPosition(0, $startRow + $i)
235-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
235+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
236236
}
237237
[Console]::SetCursorPosition(0, $startRow)
238238
return $langKeys[$cursor]
@@ -1970,7 +1970,7 @@ function Show-ProfileMenu {
19701970
# Clear menu area
19711971
for ($i = 0; $i -lt $numProfiles; $i++) {
19721972
[Console]::SetCursorPosition(0, $startRow + $i)
1973-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
1973+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
19741974
}
19751975
[Console]::SetCursorPosition(0, $startRow)
19761976

@@ -2161,7 +2161,7 @@ $running = $false
21612161
$totalLines = $numItems + 3
21622162
for ($i = 0; $i -lt $totalLines; $i++) {
21632163
[Console]::SetCursorPosition(0, $startRow + $i)
2164-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
2164+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
21652165
}
21662166
[Console]::SetCursorPosition(0, $startRow)
21672167

dist/quickstart.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ LIST_PROFILES=false
304304
SHOW_PROFILE=""
305305
SKIP_SW=()
306306
ONLY_SW=()
307-
VERSION="1.0.0-beta3-build3"
308-
if [[ "$VERSION" == "1.0.0-beta3-build3" ]]; then
307+
VERSION="1.0.0-beta3-build4"
308+
if [[ "$VERSION" == "1.0.0-beta3-build4" ]]; then
309309
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
310310
if [[ -f "$SCRIPT_DIR/../VERSION" ]]; then
311311
VERSION=$(cat "$SCRIPT_DIR/../VERSION" | tr -d '[:space:]')

src/quickstart.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ function Select-Language {
232232
$totalLines = $numLangs + 3
233233
for ($i = 0; $i -lt $totalLines; $i++) {
234234
[Console]::SetCursorPosition(0, $startRow + $i)
235-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
235+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
236236
}
237237
[Console]::SetCursorPosition(0, $startRow)
238238
return $langKeys[$cursor]
@@ -1970,7 +1970,7 @@ function Show-ProfileMenu {
19701970
# Clear menu area
19711971
for ($i = 0; $i -lt $numProfiles; $i++) {
19721972
[Console]::SetCursorPosition(0, $startRow + $i)
1973-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
1973+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
19741974
}
19751975
[Console]::SetCursorPosition(0, $startRow)
19761976

@@ -2161,7 +2161,7 @@ $running = $false
21612161
$totalLines = $numItems + 3
21622162
for ($i = 0; $i -lt $totalLines; $i++) {
21632163
[Console]::SetCursorPosition(0, $startRow + $i)
2164-
Write-Host (" " * [Console]::WindowWidth) -NoNewline
2164+
[Console]::Write("`r{0}" -f (" " * [Console]::WindowWidth))
21652165
}
21662166
[Console]::SetCursorPosition(0, $startRow)
21672167

0 commit comments

Comments
 (0)