-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-interactive.ps1
More file actions
29 lines (25 loc) · 1.16 KB
/
run-interactive.ps1
File metadata and controls
29 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Interactive JCurses Demo Runner for Windows (PowerShell)
# This script runs the interactive demo with proper JVM flags
Write-Host "Starting JCurses Interactive Demo..." -ForegroundColor Green
Write-Host "======================================"
Write-Host ""
Write-Host "Controls:"
Write-Host " TAB / Arrow Down - Move to next widget"
Write-Host " Arrow Up - Move to previous widget"
Write-Host " SPACE / ENTER - Activate focused widget"
Write-Host " ESC / Q - Quit"
Write-Host ""
Write-Host "Press any key to continue..."
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
# Compile if needed
if (-not (Test-Path "target\classes")) {
Write-Host "Compiling project..." -ForegroundColor Yellow
mvn clean compile
}
# Build classpath with Maven dependencies
Write-Host "Building classpath..." -ForegroundColor Yellow
$classpath = (mvn dependency:build-classpath -DincludeScope=runtime -q -Dmdep.outputFile=cp.txt)
$dependencies = Get-Content cp.txt -Raw
$fullClasspath = "target\classes;$dependencies"
# Run with ncurses in terminal
java --enable-preview --enable-native-access=ALL-UNNAMED -cp $fullClasspath org.flossware.curses.InteractiveDemo