SNOBOL4READLINE(3)
π SNOBOL4READLINE(3) π
the CSNOBOL4 manual, bestie edition β¨ β yes it's a section 3 page, yes it's giving library-interface energy, and yes we're gonna read the whole thing together π«Ά
πΈ NAME πΈ
snobol4readline β the SNOBOL4 readline interface, aka your little gateway to line editing, history, and that sweet sweet prompt glow-up π
β¨ SYNOPSIS β¨
-INCLUDE 'readline.sno'
INPUT_STRING = READLINE(PROMPT_STRING)
ADD_HISTORY(STRING)
STRING = HISTORY_EXPAND(STRING)
okay so first you gotta pull it in with that -INCLUDE 'readline.sno', and then the three little functions are yours to play with π
π¦ DESCRIPTION π¦
READLINE(prompt)β this one does user input, but with line editing. like, actual editing. at the prompt. iconic behavior fr fr πADD_HISTORY(string)β pushesstringinto the input history, so it's there for you later via the editing commands. it's giving "saving it for later" but make it terminal πΎHISTORY_EXPAND(string)β expandsstring, and typically that string is a!command. expansion hours, periodt β¨
π SEE ALSO π
go read those too, iykyk π
π AUTHOR π
Philip L. Budne β the mastermind, the main character, the one who wrote this whole thing π«Ά
mwah π that's the whole page, no cap. this came from CSNOBOL4B 2.3.1, dated March 31, 2022 β so go forth and readline responsibly, bestie πΈπ¦β¨
π¦ where this page comes from
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms