Giter VIP home page Giter VIP logo

readline's People

Contributors

lmorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

readline's Issues

how to block ctrl+c feature to exit?

i have checked filterInput func and can't find readline.CharCtrlC while i saw the demo code

func filterInput(r rune) (rune, bool) {
	//fmt.Println(r)
	switch r {
	// block CtrlZ feature
	case readline.CharCtrlZ:
		return r, false
	}
	return r, true
}

Feature Request or Quick Help: Live refresh of the prompt

Hello,

First of all thanks a lot for this library, which appears to be very useful, mainly thanks to its very nice completion/syntax system and Vim integration. Really loving it, can do so many things with this.
In the frame of a security project (Wiregost), I'm using this package. However it misses a few things that I would love to see implemented, even by myself (in which case a little help, clues on where to search for/modify would be unvaluable).

These things are:

  • Live refresh of the prompt line, like in the readline package. This allows, for instance, to add things like [I] or [N] or [V] to notify Vim mode. This, by the way, would free up the clue line, which becomes briefly cluttered when entering Vim Normal mode.
  • This is a bonus wish: You managed to provide a one-liner clue + completion in various forms. I use ZSH as a system shell, and far from wishing something as sophisticated (and probably useless), do you think it is possible "to stack up" these comp+clues like what ZSH provides (see picture) ?
    zsh_comp

I'm already grateful for even the tiniest help you may bring !

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.