Giter VIP home page Giter VIP logo

Comments (14)

maxlandon avatar maxlandon commented on May 30, 2024 1

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.

jay-fray avatar jay-fray commented on May 30, 2024 1

On all my terminal emulators, I get the same issue.

One moment.

from readline.

maxlandon avatar maxlandon commented on May 30, 2024 1

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.

maxlandon avatar maxlandon commented on May 30, 2024 1

Released with bug fix: https://github.com/reeflective/readline/releases/tag/v1.0.5

from readline.

jay-fray avatar jay-fray commented on May 30, 2024

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.

maxlandon avatar maxlandon commented on May 30, 2024

Thanks a lot for the ouput and explanations.
Looking at this at the moment.

from readline.

maxlandon avatar maxlandon commented on May 30, 2024

Are you using the latest release ?

from readline.

jay-fray avatar jay-fray commented on May 30, 2024

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.

maxlandon avatar maxlandon commented on May 30, 2024

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.

jay-fray avatar jay-fray commented on May 30, 2024

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.

maxlandon avatar maxlandon commented on May 30, 2024

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.

jay-fray avatar jay-fray commented on May 30, 2024

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.

jay-fray avatar jay-fray commented on May 30, 2024

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.

maxlandon avatar maxlandon commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.