Go to file
hant 5249b36b7f Move input from text box to terminal
- Removed separate input box and send button from UI
- Added terminal input handling via onData() event listener
- Users can now type directly in the terminal
- Support for:
  - Regular input (echoed in terminal)
  - Backspace (with visual feedback)
  - Enter key to send command
  - Ctrl+C to clear current input
- Removed old keyboard event handlers for input box
- Terminal now has focus by default for seamless input experience

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 15:13:14 +08:00
.idea Fix web state management: handleInput now returns structured data 2025-12-07 13:14:48 +08:00
bin 法术 2025-12-02 23:13:38 +08:00
src Handle game process exit gracefully 2025-12-07 14:53:06 +08:00
test Implement Server-Sent Events (SSE) for real-time battle streaming 2025-12-07 10:50:30 +08:00
web Move input from text box to terminal 2025-12-07 15:13:14 +08:00
.DS_Store first 2025-12-05 09:38:15 +08:00
.gitignore 技能优化 2025-12-05 17:38:10 +08:00
box.json first 2025-12-01 18:13:15 +08:00
build-phar.php first 2025-12-01 18:13:15 +08:00
build.sh first 2025-12-01 18:13:15 +08:00
composer.json Implement WebSocket real-time communication for game 2025-12-07 12:21:30 +08:00
composer.lock Implement WebSocket real-time communication for game 2025-12-07 12:21:30 +08:00
save.json Fix event loop initialization and handle pipe errors 2025-12-07 14:17:28 +08:00
start-server.sh first 2025-12-01 18:13:15 +08:00
test-websocket.php Fix event loop initialization and handle pipe errors 2025-12-07 14:17:28 +08:00
websocket-process-server.php Fix event loop initialization and handle pipe errors 2025-12-07 14:17:28 +08:00
websocket-server.php Implement WebSocket real-time communication for game 2025-12-07 12:21:30 +08:00