texteditpad
Simple textbox editing widget with Emacs-like keybindings. Provide richer features than curses.textpad routine and intended to replace it.
pypi repository: https://pypi.python.org/pypi/texteditpad
Usage
def test_editbox(stdscr):
ncols, nlines = 9, 4
uly, ulx = 15, 20
stdscr.addstr(uly - 2, ulx, "Use Ctrl-G to end editing.")
win = curses.newwin(nlines, ncols, uly, ulx)
stdscr.refresh()
return texteditpad.Textbox(win).edit()
text = curses.wrapper(test_editbox)
print 'Contents of text box:'
print text
Commands
Editing widget using the interior of a window object. Supports the following Emacs-like key bindings:
Command |
Description |
|---|---|
Ctrl-A |
Go to left edge of window. |
Ctrl-B |
Cursor left, wrapping to previous line if appropriate. |
Ctrl-D |
Delete character under cursor. |
Ctrl-E |
Go to right edge or end of line |
Ctrl-F |
Cursor right, wrapping to next line when appropriate. |
Ctrl-G |
Terminate, returning the window contents. |
Ctrl-H |
Delete character backward. |
Ctrl-I |
Toggle insert/overwrite modes. |
Ctrl-K |
If line is blank, delete it, otherwise clear to end of line. |
Ctrl-L |
Refresh screen. |
Ctrl-N |
Cursor down; move down one line. |
Ctrl-O |
Insert a blank line at cursor location. |
Ctrl-P |
Cursor up; move up one line. |
Metadata
Release files for texteditpad 0.32
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| texteditpad-0.32.tar.gz | 6.0 kB | Without provenance | Details for texteditpad-0.32.tar.gz |
Release files / texteditpad-0.32.tar.gz
| Download URL | texteditpad-0.32.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d917a78dd0234d483a275d47ffe125a4a3876a08e107e4dd1596522f04a8094
|
|
BLAKE2b-256 checksum How to use checksums |
ba871fcba48ba04d825596fd5beaf8f9d78102470f6c12b13b945a0a5e96ea51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for texteditpad 0.32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.