# fedarea

> Multi-line terminal text editor with word wrap for shell scripts.
> Renders a text area at a screen position; outputs edited text to stdout, exit reason to stderr.
> More information: `python3 fedarea.py --help`.

- Edit a 40x5 text area with word wrap and scrolling:

`python3 fedarea.py 0 0 40 5 500 1 1 -v "{{initial text}}"`

- Fixed-size area, no scrolling, no wrap (character grid):

`python3 fedarea.py 0 0 60 10 2000 0 0`

- Only ESC and Ctrl+X can exit:

`python3 fedarea.py 0 0 40 5 500 1 1 -e ESC,CTRL-X`

- Overwrite mode, cursor at start, reverse video:

`python3 fedarea.py @ @ 40 5 500 1 1 -v "{{text}}" -c start -m ovr -r`

- Display-only (no editing):

`python3 fedarea.py 2 4 60 3 500 1 1 -v "{{readonly text}}" -n`

- Colored area:

`python3 fedarea.py 0 0 40 5 500 1 1 -v "{{text}}" --color yellow,blue`

When the area is at least 3 rows tall, fedarea draws a vertical scrollbar
(`|` track, `#` thumb) in the rightmost column when content exceeds the
visible window.
