Giter Club home page Giter Club logo

ocaml-linenoise's People

Contributors

armael avatar bronsa avatar c-cube avatar craigfe avatar cwfoo avatar fxfactorial avatar liyishuai avatar tperami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

ocaml-linenoise's Issues

status of project

It seems that the repo hasn't moved much recently. I'd be interested in helping maintening the code and moving it forward (e.g. adding some direly missing escape keys such as ctrl-l or ctrl-{left,right}).

lintian info on Debian package

Hi,

I am packaging this package to Debian. But now I get one lintian info as follows:

I: liblinenoise-ocaml-dev: unstripped-static-library (lNoise.o) [usr/lib/ocaml/linenoise/linenoise.a]

This is not a real issue from my review. But on Debian, there is one tool called debhelper(dh_strip) to strip these static libraries like libstatic-library.a name scheme:

# Is it a static library, and not a debug library?
	if ($fn =~ m/\/lib[^\/]*\.a$/ && $fn !~ m/.*_g\.a$/) {
		# Is it a binary file, or something else (maybe a linker
		# script on Hurd, for example? I don't use file, because
		# file returns a variety of things on static libraries.
		if (-B $fn) {
			push @static_libs, $fn;
			return;
		}
	}

I can use lintian-override to override the info on the package. But before do this, I should forward this upstream and could I ask if we can convert linenoise.a to liblinenoise.a?

TIA.

raise `Sys.Break` on ctrl-c

line 75 of 'linenoise_stubs.c', should check if errno==EAGAIN (in which case raise instead of retuning None)

segfault after `Gc.compact()`

@fxfactorial have you had this kind of issue? in a program that sets the hint callback, after a Gc.compact() the next attempt to input something segfaults.

It seems that right now there is no call to caml_add_global_root (and caml_remove_global_root) like it should; even when I'm trying to add these it's not sufficient.

Any hint would be greatly appreciated…

The package does not handle UTF-8 prompts properly

Description

After I used λ as a prompt message, ocaml-linenoise displayed a cursor at a wierd position.
For example, when I typed abc (without a space), my terminal displays something like this.

λ abc _
     ^ Here is a weird space

What you expected

ocaml-linenoise handles λ (and any other UTF-8 encoded characters) in a proper way so that it places characters and the cursor at expected positions like the following.

λ abc_
     ^ This underscore is the cursor.

Reproduction

https://github.com/Ailrun/ocaml-linenoise-issue-13
This repository also includes instructions to reproduce the bug.

ownership of repo

I'd like to have access to settings to update the docs (moving to gh-pages) and maybe setup CI. I also wonder if it makes sense to migrate the repository somewhere else (maybe ocaml-community but not sure if it's not too niche). What do you think @fxfactorial ?

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.