A bar at the prompt
In the terminalela --spec a-bar-at-the-prompt
usage.bar = on in init.ela keeps a bar on the bottom row of the interactive shell, as vim and
less keep a status line: ela --usage gives one for a session whatever init.ela says, and
ela --usage=off none. usage.bar = on or off typed at the prompt puts it up or takes it away
from that line on. With neither, the prompt has no bar.
~/src/ela cpu ▂▃▂▁▂▃▂▁▂▃ mem ▃▃▃▃▃▃▃▃▃▃ disk ▁▁▂▁▁▁▁▂▁▁ net ▁▂▁▃▁▁▂▁▃▁
- At the prompt it shows the folder, then the whole machine's CPU, memory in use, disk and
network, received and sent on its physical interfaces, each with its sparkline; no clock, which the desktop shows. The jobs
runstarted come first, as under--usage(The bar). - While a command runs it shows the command, how long it has run, and that command's own
CPU, memory and disk, as
--usagedoes for a script; the prompt back, the machine's again. A command's bar has no network: Linux counts a process's bytes on the network nowhere. - It is drawn while ela edits the line, and steps aside, as under
--usage, while a program has the terminal raw, an editor or a pager, coming back when it ends; a resized window moves it. - One bar at a time. An
ela --usage script.elarun at the prompt, or anelastarted there, puts up none of its own, and the prompt's shows it as the command it runs. - A script refuses
usage.bar = on: its bar is--usage's, andwith usage.bar = offhides it for a block.