therm 0.2.0

Console interface with Unicode support for Windows and Linux


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

♨️ therm

Console interface with Unicode support for Windows and Linux

Installation

Use dub: dub add therm.

Usage

Create an interface, then call readln to read a line from stdin, or write(f)(ln) to write to stdout:

import therm;

Therm t = Therm.create();

string line = t.readln(prompt: "> ");
t.writefln!"you wrote: %s"(line);

Therm is a struct with a destructor that restores console state. While Therm is alive, you probably shouldn’t write stuff without going through it, but it may work. Additionally, Therm processes write/read for Windows so it can handle Unicode I/O properly.

Licence

MIT

Authors:
  • Emmanuelle Fernandes
Dependencies:
none
Versions:
0.4.0 2025-Mar-09
0.3.0 2025-Mar-06
0.2.0 2025-Mar-05
0.1.0 2025-Mar-04
~main 2025-Mar-09
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 4 downloads this week

  • 4 downloads this month

  • 4 downloads total

Score:
0.5
Short URL:
therm.dub.pm