SNOBOL4READLINE(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– 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) β€” pushes string into 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) β€” expands string, 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