rain-1 / linenoise-mob

A small self-contained alternative to readline and libedit
BSD 2-Clause "Simplified" License
66 stars 10 forks source link

mid-line cut C-k then C-y paste is broken #23

Open rain-1 opened 6 years ago

rain-1 commented 6 years ago

mid-line cut C-k then C-y paste is broken

rain-1 commented 6 years ago

It seems that C-k is not cut, just kill.

and C-y is not paste but inserting a control code.

cesss commented 5 years ago

Usually in a terminal you use Shift+Ctrl+C for copy and Shift+Ctrl+V for paste if you are on UNIX, or Cmd+C and Cmd+V if you are on MacOS. I checked that both Cmd+C and Cmd+V work on my Mac with your linenoise-mb repository.

OTOH, I'm not sure if you can cut in a terminal. For example, Cmd+X doesn't even work in the standard MacOS Terminal. Not sure if you can cut in a Linux terminal.

rain-1 commented 5 years ago

Thank you for investigating the behaviour and reporting back!