Skip to main content

Simple Python terminal (TUI) multi-line editor

Project description

# py-tui-editor

Simple Python terminal (TUI) multi-line editor

Simple TUI editor

Python TUI?

What I want: - simple multi-line editor - not whole screen but only partial - show interactive feedback. e.g. mark edits, show number of edits, show diff in separate plane or so

https://docs.python.org/3/library/curses.html - too complex but at the same time too limited?

https://github.com/bczsalba/pytermgui (1.2k stars) - limited, no real text editor

https://urwid.org/examples/index.html (2.5k stars) - edit example: https://github.com/urwid/urwid/blob/master/examples/edit.py

https://github.com/prompt-toolkit/python-prompt-toolkit (7.9k stars) - too complex…? similar as curses…

https://github.com/pfalcon/picotui (0.7k stars) - good enough? editor: https://github.com/pfalcon/picotui/blob/master/picotui/editor.py - another editor: https://github.com/pfalcon/picotui/blob/master/seditor.py

https://github.com/Textualize/textual (13k stars) - async framework, I don’t want that…

(Or coding some line edit by hand, should not be too difficult…?)

https://github.com/pfalcon/picotui/blob/master/seditor.py

Very simple VT100 terminal text editor widget Copyright (c) 2015 Paul Sokolovsky, (c) 2022 Albert Zeyer Distributed under MIT License

https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_input_sequences https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-The-Alternate-Screen-Buffer

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

tui-editor-1.20220820.223508.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file tui-editor-1.20220820.223508.tar.gz.

File metadata

  • Download URL: tui-editor-1.20220820.223508.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for tui-editor-1.20220820.223508.tar.gz
Algorithm Hash digest
SHA256 5d3b558f717aab689010c4d19851c10263fd193da160a50cb441c8c0a488b20b
MD5 21642543181a52413704fc353b595ce2
BLAKE2b-256 8eb7eef3cc95393bb83dc9f353ba3f782de3c5a0a6032c1b7131ffac8e6d2f23

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