Git Product home page Git Product logo

Comments (5)

ArthurSonzogni avatar ArthurSonzogni commented on August 22, 2024 2

I tried kmscon.

I tried two thing:

terminal_configuration_new.c_cc[VERASE] = "code for backspace"

and

"code for backspace = " = terminal_configuration_old.c_cc[VERASE]

None of them seems to work. I don't know why.

I am using termios in
src/ftxui/component/screen_interactive.cpp

and the event code for backspace is defined in:
src/ftxui/component/screen_interactive.cpp

from ftxui.

ArthurSonzogni avatar ArthurSonzogni commented on August 22, 2024

Thanks!

Are you sure you typed "BackSpace" and not "Del"?

Maybe this is related to:
http://www.macfreek.nl/memory/Backspace_and_Delete_key_reversed

I made the "input" component to accept both the BackSpace and the Delete key. I also fixed a few bugs.

from ftxui.

codehz avatar codehz commented on August 22, 2024

yes, I can confirm that I typed same key in xterm.
(ncurses use terminfo for cross-terminal compatiable)

from ftxui.

ArthurSonzogni avatar ArthurSonzogni commented on August 22, 2024

Closing this old issue. This is a problem for kmscon. I opened:
dvdhrm/kmscon#136
but didn't get an answer within 2 years.

from ftxui.

ArthurSonzogni avatar ArthurSonzogni commented on August 22, 2024

I added this patch:
#510

from ftxui.

Related Issues (20)

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.