Comments (14)
Just to check, I printed out all the binds:
Mode : emacs Key : \ Is Macro : false Action : self-insert Mode : emacs-standard Key : \ Is Macro : false Action : self-insert Mode : emacs-meta Key : \ Is Macro : false Action : delete-horizontal-space Mode : vi-insert Key : \ Is Macro : false Action : self-insert
Would the
emacs-meta
be the problem here?
Sorry, forgot to answer to this.
No its likely not due to this, as the standard emacs and emacs-standard keyboards are the same (they are copies of each other, and emacs-ctlx
and emacs-meta
are subsets of the emacs
one: `emacs is a combination of both.)
from readline.
On all my terminal emulators, I get the same issue.
One moment.
from readline.
Yes backspace solved, its was a problem with clearing line. Pushing a fix and release for this.
If you end up finding the issue on your system and you deem it relevant, to hesitate to come back !
This project is rather young and not widespread/tested yet, it must be widely tested before being sure of everything (and maintainers sleeping at nights !)
from readline.
Released with bug fix: https://github.com/reeflective/readline/releases/tag/v1.0.5
from readline.
Just to check, I printed out all the binds:
Mode : emacs
Key : \
Is Macro : false
Action : self-insert
Mode : emacs-standard
Key : \
Is Macro : false
Action : self-insert
Mode : emacs-meta
Key : \
Is Macro : false
Action : delete-horizontal-space
Mode : vi-insert
Key : \
Is Macro : false
Action : self-insert
Would the emacs-meta
be the problem here?
from readline.
Thanks a lot for the ouput and explanations.
Looking at this at the moment.
from readline.
Are you using the latest release ?
from readline.
I believe so, yes:
require github.com/reeflective/readline v1.0.4
require (
github.com/rivo/uniseg v0.4.4 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/term v0.8.0 // indirect
)
from readline.
This is bizarre. (I have another issue) but not this one.
Does the backspace key works fine ?
Testing this on your program, without any .inputrc
file loaded.
What is your system/shell/terminal, if I may ?
from readline.
Actually, no! Backspace is technically working but not updating the line editor with the changes, but the final result is as expected.
System (linux):
└[INS]─> uname -r
6.3.4-arch1-1
Shell:
└[INS]─> bash --version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
And terminal is foot: https://codeberg.org/dnkl
└[INS]─> foot --version
foot version: 1.14.0 +pgo +ime +graphemes -assertions
And my .inputrc is currently empty.
from readline.
I'm facing a problem, I don't run Wayland on my machine, so I'm not able to solve this right now.
On Xterm, your program prints and returns the backslashes. Atm I really have no clue.
from readline.
My word that was rough.
So I ended up spinning up a docker container and throwing the code in there. The backslash works as expected, so it's something higher on my system that's causing the issue.
Thanks for the fast response and help!
The backspace is still not working properly, but I'm assuming you're looking into that. If not, lemme know and I can throw up another issue.
from readline.
Yes backspace solved, its was a problem with clearing line. Pushing a fix and release for this. If you end up finding the issue on your system and you deem it relevant, to hesitate to come back !
Will do!
This project is rather young and not widespread/tested yet, it must be widely tested before being sure of everything (and maintainers sleeping at nights !)
I'll be testing the heck out of it: Writing my own shell for fun (and maybe prod use)! :)
from readline.
I'll be testing the heck out of it: Writing my own shell for fun (and maybe prod use)! :)
Bold but great endeavour, good luck.
from readline.
Related Issues (17)
- offset cursor HOT 15
- it doesn't work on git bash in Windows HOT 6
- expose keymapMode type HOT 1
- Don't add empty lines to history
- Extend support for more editors, with some comfort settings
- case insensitive tab completion HOT 4
- consolidating changes/fixes from hilbish's fork HOT 2
- Fix Windows tests for `.inputrc` code
- Implement multiline editing support HOT 1
- Implement proper Windows redisplay on resize
- Remaining widgets to implement
- comments (?) behaviour HOT 14
- Support escape sequences in vi-ins-mode-string & vi-cmd-mode-string HOT 7
- Implement testing suite HOT 1
- Port lmorg/readline code for WASM support
- Review or enhancements of terminal-specific code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readline.