RLFE(1)
okay so bestie, pull up a chair because we're talking about rlfe(1) from the General Commands Manual and honestly? it's giving genius π«Ά
πΈ NAME πΈ
rlfe β the tool that "cooks" input lines for other programs using readline π³β¨
β¨ SYNOPSIS β¨
rlfe [-l filename] [-a] [-n appname] [-hv] [command [arguments ...]]
π¦ DESCRIPTION π¦
so like, rlfe lets you use history and line-editing in any text oriented tool. literally any of them. π
and the way this SLAPS is with third-party proprietary tools that cannot be distributed linked against readline β those ones that are just out here raw and uneditable? yeah, rlfe has them. π₯
ngl it is not perfect but it works pretty well, and that's the energy we're bringing today. π
π OPTIONS π
-aβ append to the logfile instead of overwriting it (because overwriting is the default, and yes that means your logfile gets clobbered unless you say otherwise π).-lfilename β log into file. that's it, that's the whole thing. π-nappname β set the readline application name. name your app, bestie. π·οΈ-hβ print the usage string. when you're lost, ask for directions. πΊοΈ-vβ print version information. for when you gotta know what era ofrlfeyou're living in. β
π SEE ALSO π
readline(3)β the icon that started it all π
π AUTHOR π
Per Bothner π«Ά
π PROBLEMS/TODO π
okay so this is the "we're being honest with each other" section, and I respect it so much:
- When running
mc -cunder the Linux console,mcdoes not recognize mouse clicks, whichmcdoes when not running underfep. π mouse clicks just ghosting us. - Pasting selected text containing tabs is like hitting the tab character, which invokes
readlinecompletion. We don't want this. And the author doesn't know if this is fixable without integratingfepinto a terminal emulator. so like... it's a whole situation. π - Echo suppression is a kludge, but it can only be avoided with better kernel support: we need a tty mode to disable "real" echoing, while still letting the inferior think its tty driver to doing echoing. Stevens's book claims
SCR$and BSD4.3+ haveTIOCREMOTE. deep lore fr fr π - The latest
readlinemay have some hooks we can use to avoid having to back up the prompt. fingers crossed π€ - Desirable
readlinefeature: when in cooked no-echo mode (e.g. password), echo characters are they are types with'*', but remove them when done. π - A synchronous output while we're editing an input line should be inserted in the output view.PPbefore* the input line, so that the lines being edited (with the prompt) float at the end of the input. π
- A "page mode" option to emulate
more/lessbehavior: at each page of output, pause for a user command. This required parsing the output to keep track of line lengths. It also requires remembering the output, if we want an option to scroll back, which suggests that this should be integrated with a terminal emulator likexterm. π₯οΈβ¨
not me reading a TODO list like it's a group chat. anyway, every one of these is real and documented, no cap.
and that's the whole page, bestie π this was RLFE(1) from the General Commands Manual β the one and only, the original, the main character of tty line editing. mwah π stay slaying out there ππ¦
π¦ where this page comes from
- debian bookworm: rlfe 8.2-1.3 Β· GPL-2.0-or-later
- debian trixie: rlfe 8.2-6 Β· GPL-3.0-or-later
- ubuntu jammy: rlfe 8.1.2-1
- ubuntu noble: rlfe 8.2-4build1 Β· GPL-3.0-or-later
- ubuntu questing: rlfe 8.3-3
- ubuntu resolute: rlfe 8.3-4 Β· GPL-3.0-or-later
- ubuntu stonking: rlfe 8.3-4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms