Code Monkey home page Code Monkey logo

Comments (8)

jtdaugherty avatar jtdaugherty commented on July 30, 2024

This might be because your terminal emulator isn't sending the same keycodes that Vty expects. Which emulator are you using? (And are you using screen or tmux?)

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

(And cabal freeze writes cabal.config.)

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

I tried this using Terminal.app and I saw the same behavior that you described. I always use iTerm2, though, and it works as expected there.

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

It is possible to tell Terminal.app which escape sequences to send for certain keys. You might consider this:

http://unix.stackexchange.com/questions/110022/how-do-i-find-out-the-keycodes-for-ctrlup-and-down-arrow-for-term-screen

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

I was able to get this to work by setting sequences for Ctrl-up/down as follows:

  • Go to terminal preferences
  • Click "Keyboard" for active profile
  • Click "+"
  • Select "Control" and "Cursor Up"
  • For the sequence, click the text box, and press ESC [ 1 ; 5 A
    (Similarly for Ctrl-Down, just B instead of A)

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

(But for future reference, Terminal.app tends to be more impoverished than iTerm2.)

from brick.

jtdaugherty avatar jtdaugherty commented on July 30, 2024

Give this a try and if it works, please close this ticket (or let me know what else I need to do).

from brick.

dylanmc avatar dylanmc commented on July 30, 2024

That workaround (/fix to Terminal) works great. Thanks! (/me shuffles off to download iTerm2)

from brick.

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.