# fedline

> Single-line terminal text editor for shell scripts.
> Renders a field at a screen position; outputs edited text to stdout, exit reason to stderr.
> More information: `python3 fedline.py --help`.

- Edit a 40-column field at row 0, col 0:

`python3 fedline.py 0 0 40 120 -v "{{initial text}}"`

- Field with fill character and restricted exit keys:

`python3 fedline.py 0 0 40 120 -v "{{text}}" -f "." -e TAB,SHIFT-TAB`

- Capture output in a shell script:

`text=$(python3 fedline.py 0 0 40 120 -v "{{text}}" 2>/tmp/reason); code=$?; reason=$(cat /tmp/reason)`

- Overwrite mode, cursor at start, reverse video:

`python3 fedline.py 0 0 40 120 -v "{{text}}" -c start -m ovr -r`

- Display-only (no editing):

`python3 fedline.py 5 10 30 50 -v "{{label}}" -n`

- Use current cursor position:

`python3 fedline.py @ @ 40 120 -v "{{text}}"`

- Colored field (ANSI names, optional `bright-` prefix):

`python3 fedline.py 0 0 40 120 -v "{{text}}" --color yellow,blue`

When the field width is at least 5, fedline draws `<` / `>` indicators at the
edges of the viewport when content scrolls off either side.
