Skip to content

About

Kotlin Multiplatform port of Rust's anstyle-query

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

anstyle-query-kotlin in Kotlin

GitHub link Maven Central Build status

This is a Kotlin Multiplatform line-by-line port of rust-cli/anstyle (anstyle-query).

Installation

dependencies {
    implementation("io.github.kotlinmania:anstyle-query-kotlin:0.1.0")
}

API

Package io.github.kotlinmania.anstylequery:

  • clicolor(): Boolean? — checks CLICOLOR
  • clicolorForce(): Boolean — checks CLICOLOR_FORCE
  • noColor(): Boolean — checks NO_COLOR
  • termSupportsColor(): Boolean — checks TERM for color support
  • termSupportsAnsiColor(): Boolean — checks TERM for ANSI color support
  • truecolor(): Boolean — checks COLORTERM ("truecolor" or "24bit")
  • isCi(): Boolean — checks CI presence

Package io.github.kotlinmania.anstylequery.windows:

  • enableAnsiColors(): Boolean? — enables ENABLE_VIRTUAL_TERMINAL_PROCESSING on Windows (null on non-Windows)
  • enableVirtualTerminalProcessing(): Boolean — raw Windows console VT enablement (mingwMain)

Building

./gradlew build
./gradlew test

About

Kotlin Multiplatform port of Rust's anstyle-query

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages