Skip to main content

Timeline for Send keys to a terminal buffer

Current License: CC BY-SA 4.0

13 events
when toggle format what by license comment
Oct 10, 2019 at 11:21 history edited Thunderbeef CC BY-SA 4.0
added 176 characters in body
Oct 10, 2019 at 11:18 comment added Thunderbeef @Rich Yep, "\x##" works as well. Guess that makes my code over-engineered for no reason. Oh well..
Oct 10, 2019 at 11:00 history edited Thunderbeef CC BY-SA 4.0
cosmetic
Oct 10, 2019 at 10:48 comment added Salami Thanks! I was finally able to get the enter key working with your example! I've ditched the up arrow key and resorted to the simpler "!!" built-in. See my answer.
Oct 10, 2019 at 7:49 history edited Thunderbeef CC BY-SA 4.0
deleted 59 characters in body
Oct 10, 2019 at 0:28 comment added Thunderbeef @D.BenKnoble Turns out, there is! I've updated my answer.
Oct 10, 2019 at 0:28 history edited Thunderbeef CC BY-SA 4.0
How to do it in vim directly
Oct 10, 2019 at 0:10 comment added D. Ben Knoble duh /facepalm. I wonder if theres a way to do it, still, as that is a hard workaround
Oct 10, 2019 at 0:08 comment added Thunderbeef @D.BenKnoble In vim, if you do C-v Up, it inserts plain text <Up> instead of literal byte sequence of Up keystroke. And you need the latter to make this work.
Oct 10, 2019 at 0:00 comment added D. Ben Knoble You also dont need to do the literal echo from the shell; you can use C-v in vim
Oct 10, 2019 at 0:00 comment added D. Ben Knoble term_sendkeys is vim’s term api
Oct 9, 2019 at 22:54 history edited Thunderbeef CC BY-SA 4.0
added 79 characters in body
Oct 9, 2019 at 22:42 history answered Thunderbeef CC BY-SA 4.0