Welcome to ConsoleM’s documentation!

ConsoleM is a powerful Python library for terminal manipulation and text styling. It provides a simple and intuitive API for creating beautiful terminal applications with advanced features like cursor control, text styling, and keyboard input handling.

Features

  • Terminal Manipulation * Cursor movement and positioning * Screen clearing and line management * Alternate screen support * Terminal size detection * Cursor visibility control

  • Text Styling * Rich text formatting with markup syntax * Color support (foreground and background) * Text styles (bold, underline, etc.) * Emoji support * Easy-to-use markup syntax

  • Input Handling * Keyboard input capture * Non-blocking input processing * Key event queue management

Indices and tables