GoloScript v0.0.2 is out!
🤓 GoloScript v0.0.2 - dev.20260129.🐻❄️
What’s New in v0.0.2
GoloScript v0.0.2 introduces a powerful Terminal UI Module that transforms how you build command-line applications. Create beautiful, interactive, and user-friendly terminal interfaces with ease!
Major Feature: Terminal UI Module
The new gololang.Ui module provides a comprehensive suite of terminal UI capabilities:
Highlights
Rich Text Formatting
- Color Support: Full palette of standard and bright colors
- Text Styles: Bold, italic, underline, dim
import gololang.Ui
colorPrintln("Success!", "green")
println(bold(red("Error: ")) + "File not found")
Semantic Messages
Pre-styled message functions for consistent UX:
success("Operation completed!") # ✓ Green
error("Something went wrong!") # ✗ Red
warning("Be careful!") # ⚠ Yellow
info("Just so you know...") # ℹ Cyan
Markdown Rendering
Full markdown support with syntax highlighting:
markdown("""
# My Application
This is **bold** and *italic* text.
""")
Streaming Markdown for AI responses and progressive rendering:
markdownStreamStart("ai-response")
markdownStreamAppend("ai-response", "# Response\n\n")
markdownStreamAppend("ai-response", "Streaming **content**...")
markdownStreamEnd("ai-response")
Animated Spinners
Professional loading animations with multiple styles:
spinnerNew("task", "Loading data", "please wait...")
spinnerStart("task")
# Do work...
sleep(2000)
spinnerSuccess("task", "Data loaded!")
Features:
- Multiple animation styles (braille, dots, arrows, circle, etc.)
- Dynamic updates (prefix, suffix, animation style)
- Success/Error completion states
- Concurrent spinner support
Interactive Input
Comprehensive user input functions:
# Text input with default value
let name = prompt("Your name:", "Anonymous")
# Secure password input
let password = promptPassword("Password:")
# Multi-line text editor
let description = promptMultiline("Description:", null)
Design Philosophy
- Zero Dependencies: Built on GoloScript’s native capabilities
- Composable: Functions can be combined for complex UIs
- Intuitive API: Consistent, easy-to-learn function names
- Performance: Efficient ANSI code generation
- Extensible: Easy to add new styles and features
Repository
https://codeberg.org/TypeUnsafe/golo-script
Built with ❤️ by the GoloScript community 🐻❄️