Back to home page

PS Kiwi ANSI

Built withPS 5.1
Stablecheck
NameKansi
Version25.0.0
Stage90.97 Removed
Released2025-06-04 00:00:00
Next version25.0.5

Kiwi ANSI (Kansi) is a PowerShell module to easily create beautiful ANSI strings.

Kiwi ANSI

Kiwi ANSI (Kansi) is a PowerShell module to easily create beautiful ANSI strings.

No need for cheatsheets or your memory... Want to bold some text? Just do it!(TM).

Supports most of the sequences I found on Wikipedia.

How to use

With code

You can use the KansiConfig class to easily inject ANSI sequences into your strings:

$K = New-KnConfig

Write-Host "Hello, $($K.Bold)World$($K.BoldOff)!"

Hello, World!

With HTML

Because why not amirite?! (extremely work in progress)

$AnsiStr = ConvertTo-KnString -Html @"
<div>
    <p>Heeelloooo <i>little boyyyyy</i></p>
    <br></br>
    <p>A tuppence for <b>you</b></p>
</div>
"@

Write-Host $AnsiStr.ToString()

Heeelloooo little boyyyyy

A tuppence for you

Kansi Markup Format (KMF)

 Show  Show timeline Show 25.0.5