# Console application

**URL:** <https://forum.crystal-lang.org/t/console-application/7022>\
**Category:** Help & Support\
**Created:** [July 16, 2024, 3:12am UTC](https://forum.crystal-lang.org/t/console-application/7022 "2024-07-16T03:12:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/alain/32/745_2.png) [@Alain](https://forum.crystal-lang.org/u/Alain)\
**Post date:** [July 16, 2024, 3:12am UTC](https://forum.crystal-lang.org/t/console-application/7022/1 "2024-07-16T03:12:36Z")

</div>

How to :

1. Print a character in a certain color
2. Put the cursor in the upper-left-corner
3. Clear the screen

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/blacksmoke16/32/1241_2.png) [@Blacksmoke16](https://forum.crystal-lang.org/u/Blacksmoke16)\
**Post date:** [July 16, 2024, 3:24am UTC](https://forum.crystal-lang.org/t/console-application/7022/2 "2024-07-16T03:24:22Z")

</div>

For 1, you could probably leverage [Colorize - Crystal 1.13.1](https://crystal-lang.org/api/Colorize.html). 2 and 3 would want to look into [ANSI escape code - Wikipedia](https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_(Control_Sequence_Introducer)_sequences).

---

<div class="post-metadata">

**Author:** ![kojix2](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/kojix2/32/1583_2.png) [@kojix2](https://forum.crystal-lang.org/u/kojix2)\
**Post date:** [July 16, 2024, 3:46am UTC](https://forum.crystal-lang.org/t/console-application/7022/3 "2024-07-16T03:46:50Z")

</div>

The Crystal term project may be helpful.

> **[Crystal Term](https://github.com/crystal-term)**
>
> Crystal Term has 6 repositories available. Follow their code on GitHub.

---

<div class="post-metadata">

**Author:** ![MistressRemilia](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/mistressremilia/32/2585_2.png) [@MistressRemilia](https://forum.crystal-lang.org/u/MistressRemilia)\
**Post date:** [July 16, 2024, 8:17pm UTC](https://forum.crystal-lang.org/t/console-application/7022/4 "2024-07-16T20:17:04Z")

</div>

You could use my S-Lang bindings for this: [https://chiselapp.com/user/MistressRemilia/repository/remislang/](https://chiselapp.com/user/MistressRemilia/repository/remislang/)

---

<div class="post-metadata">

**Author:** ![rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/rob/32/1409_2.png) [@rob](https://forum.crystal-lang.org/u/rob)\
**Post date:** [July 17, 2024, 9:40pm UTC](https://forum.crystal-lang.org/t/console-application/7022/5 "2024-07-17T21:40:57Z")

</div>

I did some of this a while ago, hoping to abstract out the low level ansi commands into something more high level. The project is out of date certainly, but [it’s available as a reference](https://github.com/robacarp/keimeno) if you’re interested in perusing.

I was able to build fzf-like utilities with it (which don’t take over the screen but do fancy rendering inline) and some full screen utilities with it too.
