Skip to main content

TE: a cross-platform terminal text editor with mouse support and syntax highlighting

Project description

================================================================================ TEdit (Text Editor) — also known as "TE"

Python: 3.8+ License: Custom — All Rights Reserved © 2024-2026 alby13


OVERVIEW

TE is a Windows optimized terminal text editor that provides a simple, mouse-driven, and intuitive editing experience without leaving the command line. It leverages the powerful Pygments library for syntax highlighting across dozens of languages and the standard curses library for its terminal user interface (TUI).

How does this exist? A programmer named Ken Arnold made a software library in 1978 called Curses.


ASCII LOGO

░▒▓████████▓▒░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█████▓▒░


VERSIONS

Current Version: Version 2.7 — Released 2026-05-24

Previous Releases:

  • Version 1.6 — 2024-07-10
  • Version 1.7 — 2025-06-22
  • Version 1.8 — 2025-06-23
  • Version 1.9 listed as v0.9.1 — 2025-09-29

ABOUT THE PROJECT

TE was created as a demonstration of programming capabilities, showing how to handle complex state management, user input (both keyboard and mouse), and third-party library integration in a significant console application.


WHAT'S NEW IN VERSION 2.7.0

  • Bug Fixes and Refinements
  • Limited Horizontal Support (WIP)
  • Bug fixes for line movement and horizontal scrolling
  • Color Themes added for normal text files
  • Improvements and fixes for Color Displays
  • Find Feature
  • Improvements to Open File GUI
  • Proper TAB text area support

FEATURES

Syntax Highlighting Auto-detect languages; powered by Pygments Full Mouse Support Click to move, drag-select, scroll, interact with menus File Browser Navigate filesystem to open files and directories Color Themes Select a Background Color and Text Color for any file Code Themes Cycle through Pygments color schemes instantly File Operations New, Open, Save, Save As — all built-in Robust Handling Graceful handling of legacy encodings and files Toggleable Line Numbers Show or hide line numbers with a keypress Search for Text You can now search from your cursor for text Status Bar Shows file name, cursor position, theme, and mode


GETTING STARTED

Prerequisites:

  • Python 3.8 or newer
  • Pygments (installed automatically with tedit, or manually): pip install pygments

Installation: Open Command Prompt (Windows) or Terminal (Linux/macOS) and run:

  pip install tedit

RUNNING THE EDITOR

After installation, launch with either command:

TE
or
TEdit

USAGE & CONTROLS

TE is designed to feel familiar to users of graphical editors.

Main Keys: F1 Open file browser F2 Save current file F3 New file F4 Cycle color theme F5 Toggle line numbers F9 Switch between Edit & Menu modes Esc x3 Exit the editor immediately

Edit Mode (default): Arrow keys Move cursor Page Up / Down Scroll by screen Typing Insert characters Enter New line Backspace/Delete Remove characters Shift + Arrows Select text

Menu Mode (activate with F9 or click menu bar): Left/Right Arrows Switch top-level menus Up/Down Arrows Navigate submenu Enter Select menu item Esc Exit submenu or Menu Mode

Mouse Controls: Click in text area Move cursor Right-click Access submenu Click and drag Select text Scroll wheel Scroll document Click menu bar Activate Menu Mode Click submenu item Execute action (Undo, Redo, Copy, Paste, Cut)


LICENSE NOTICE

This program is distributed via PyPI for personal use only. The source code shown on GitHub is for demonstration purposes and may NOT be copied, modified, or redistributed without express written permission from the author.

Third-party components retain their own licenses:

  • curses → Python Software Foundation License
  • pyperclip → 3-Clause BSD
  • Pygments → BSD-style

================================================================================

Install:

pip install tedit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tedit-2.8.0.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tedit-2.8.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file tedit-2.8.0.tar.gz.

File metadata

  • Download URL: tedit-2.8.0.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for tedit-2.8.0.tar.gz
Algorithm Hash digest
SHA256 f428bfb5ab996e0fbab086cf8f4cf4421a9bb89ca504c5254c2eff926f0f2788
MD5 a1d28b9e104d0bcdc5d40dfd9322b294
BLAKE2b-256 7507782fd7bbe4853a44add307be5a291b31dd435c3b3e84708b2c291460689a

See more details on using hashes here.

File details

Details for the file tedit-2.8.0-py3-none-any.whl.

File metadata

  • Download URL: tedit-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for tedit-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab33ea3370b7f99c808e0ae96711f531a57a9155fae539c85b037f125a268e0
MD5 6099ca90d11fb8dfbb5d94fd7aca49b0
BLAKE2b-256 e8a2c53e724c2e66ff67dac5d7cea17d165b09a1da4c73ebaf3ee5347d683e7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page