FAQ
Login
GNU social JPは日本のGNU socialサーバーです。
Usage
/
ToS
/
admin
/
test
/
Pleroma FE
Public
Public
Network
Groups
Featured
Popular
People
Embed Notice
HTML Code
<blockquote style="position: relative; padding-left: 55px;"><section><a href="https://social.jvns.ca/users/b0rk/statuses/113448641467877449">Julia Evans (b0rk@social.jvns.ca)'s status on Saturday, 09-Nov-2024 03:02:25 JST</a><a href="https://social.jvns.ca/@b0rk" title="b0rk@social.jvns.ca"><img src="https://gnusocial.jp/avatar/88850-48-20230116234922.webp" width="48" height="48" alt="Julia Evans" style="position: absolute; left: 0; top: 0;">Julia Evans</a></section><article><p>more weird terminal stuff: line editing</p></article><footer><a rel="bookmark" href="https://gnusocial.jp/conversation/3964613#notice-7744590">In conversation</a><time datetime="2024-11-09T03:02:25+09:00" title="Saturday, 09-Nov-2024 03:02:25 JST">about 13 days ago</time> <span>from <span><a href="https://social.jvns.ca/@b0rk/113448641467877449" rel="external" title="Sent from social.jvns.ca via ActivityPub">social.jvns.ca</a></span></span><a href="https://social.jvns.ca/@b0rk/113448641467877449">permalink</a><h4>Attachments</h4><ol><li><label><a rel="external" href="https://gnusocial.jp/attachment/3443224">panel 1: editing text you typed in seems so basic:>>> print("helo")oops, forgot an l!but there's actually no standard systempanel 2: programs need to implement even the most basic thingsperson: "left arrow"program: "ok I will move the cursor to the left"often programs will use the readline library for thisoption 1: NOTHINGperson (angry): "even the ARROW KEYS don't work???"program: arrow keys? what's that?* Only `Ctrl-W` `Ctrl-U` and backspace work * Examples: cat, nc, git * You're probably in this situation if you press the left arrow key and it prints `^[[D` * You can often add readline shortcuts with `rlwrap`, like this:$ rlwrap ncoption 2: READLINEperson (neutral): "it's a little awkward but at least I can use those weird keyboard shortcuts from emacs!"* LOTS of keyboard shortcuts: `Ctrl-A` `Ctrl-E` , arrow keys, many more * You can use Ctrl-R to look at history * Examples: bash, irb, psql * If you press `Ctrl-R` and you see "reverse-i-search" , you're probably using readline * Configurable with the `~/.inputrc` config fileoption 3: CUSTOMperson (smiling): "wow, I can type a multiline command without it being a total disaster?? amazing!"* The keyboard shortcuts are probably influenced by readline * Examples: fish, zsh, ipython * usually you only see custom implementations in bigger projects</a></label><br><a href="https://cdn.masto.host/socialjvnsca/media_attachments/files/113/448/641/150/204/338/original/a1852af41fbc4323.png" rel="external">https://cdn.masto.host/socialjvnsca/media_attachments/files/113/448/641/150/204/338/original/a1852af41fbc4323.png</a></li></ol></footer></blockquote>
Corresponding Notice
Embed this notice
Julia Evans (b0rk@social.jvns.ca)'s status on Saturday, 09-Nov-2024 03:02:25 JST
Julia Evans
more weird terminal stuff: line editing