Skip to main content

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

Reason this release was yanked:

Correction to launching code

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.1.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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tedit-2.7.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2f037a841d5c4be2ee566beb704da9c5479e07d0df005a77919d9d3f8c137ef6
MD5 4fd8cca7bcdb5ca5276e73c131d5e99f
BLAKE2b-256 f991ac6e882fe6493062b47bc3d5c12b195285a134451a7130306a224006d181

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tedit-2.7.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2930e4f6133bec7504cf5388ce9c2d49aad8012381139f8739379359d4a877d
MD5 d27520cfbbb5334ac04fdb87cf9f2f05
BLAKE2b-256 47e915859914a348b9a4386267f963436f4de71029cd698c5ba3cf8ab29bb5f6

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