Git Product home page Git Product logo

Comments (3)

jamesgecko avatar jamesgecko commented on September 5, 2024 1

Oh, wait. I just saw #48. I noticed esc didn't work anymore and thought that meant that arrow key support was in. Never mind! :-)

from selecta.

garybernhardt avatar garybernhardt commented on September 5, 2024

We saw this once when arrow key support was added (then quickly removed). I never managed to figure out how to get the OA/OB/etc. codes instead of the normal escape codes.

This made me give it another try, and I found it. There are two cursor modes: "cursor" cursor mode, which sends the usual codes, like [A, and "application" cursor mode, which sends OA etc. The evil one, "application" cursor mode, is enabled by writing ESC + "[?1h" to the terminal. Apparently, something is printing those bytes at some point after your shell starts, putting your terminal into the evil mode. Terminals.

from selecta.

mgedmin avatar mgedmin commented on September 5, 2024

The standard terminfo init string tends to enable application keypad mode. Any ncurses-using app will emit the init string during initialization. This mode is turned off via another escape sequence, which is part of the standard finalization string, emitted by ncurses apps when they exit. Well-behaved ncurses apps also restore terminal modes when they are backgrounded or when they shell out to an interactive shell session.

from selecta.

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.