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.7.2.tar.gz (27.1 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.7.2-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tedit-2.7.2.tar.gz
Algorithm Hash digest
SHA256 d9f1fff7190077b8a1197dded2cf68d866a9816fbcb485d2b4c31a1cfe0b5a76
MD5 0e515b39394eb63fbb9353cf4742a226
BLAKE2b-256 ecb0c052421a941e8485c77659a949bfd74667f2ddbd4fa2f0ec73b2d4f69342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tedit-2.7.2-py3-none-any.whl
  • Upload date:
  • Size: 28.7 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.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3ce2701ee81798ed8f3350f0b45c3d2ee926eeeed36002ba44ae53a00a65fb7
MD5 c63eebf4fa8088d80b868582b227979e
BLAKE2b-256 848fa46ab5da7c41a4aee3e589ca0fface2653fc46a8b9b3acf16c28262cfe6b

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