GeistHaus
log in · sign up

GNU Readline - Wikipedia

en.wikipedia.org
17 pages link to this URL
Clojure

I haven't done a whole lot of Clojure lately, but that's no reason not to install it. It officially supports Java LTS releases (currently, Java 11). I skipped 11 and installed OpenJDK 17 the other day. That's not an LTS, but I think it will be okay. It also says, "Ensure that the following dependencies are installed: bash, curl, rlwrap, and Java." I think I have bash, curl, and Java, but I still need rlwrap

0 inbound links article en blogdeveloperpersonal
Readline Is Kinda Crazy

I have used vi-mode in the terminal for years. I am comfortable making changes to my .inputrc and have bound several scripts to control key combinations. But I’m almost embarrassed to admit, that I was today years old when I realized that I could bind actions to arbitrary key combinations. Just like in (n)vi(m). I’m shook.

0 inbound links article en posts blogprogramming
Loss of input in Charm’s Bubbletea

Abstract In the Bubbline project we are trying to build readline-like semantics on top of Charm’s Bubbletea. As of Bubbletea v0.23, we discovered this is currently impossible to do in a way that preserves input continuity reliably across readline invocations. This result is general. Any Bubbletea-based program or …

0 inbound links article en CC BY-NC-SA 4.0
Going REPLing with Haskeline

We use Haskeline to create a REPL for our new programming language.

0 inbound links article en programming-languages programming-languagesinterpretershaskell
Ctrl+L vs clear

In a terminal, you can clear the screen in two common ways: Run the clear command Press Ctrl+L The result looks the same at first, but there’s a catch: clear can also wipe your scrollback buffer1, while Ctrl+L never does. Also, behind the scenes they’re implemented in different ways. Ctrl+L When you press Ctrl+L at the Bash prompt, it’s not invoking an external program, but instead it’s handled inside GNU Readline, the library Bash uses for interactive line editing2. In Readline’s input keymap, the key Ctrl+L is bound to the clear-screen function. You can confirm this with:

0 inbound links article en notes LinuxTerminalShellBash