ocaml-community / ocaml-linenoise Goto Github PK
View Code? Open in Web Editor NEWSelf-contained OCaml bindings to linenoise, easy high level readline functionality in OCaml
Home Page: http://ocaml-community.github.io/ocaml-linenoise/
Self-contained OCaml bindings to linenoise, easy high level readline functionality in OCaml
Home Page: http://ocaml-community.github.io/ocaml-linenoise/
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}).
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.
Currently it's marked as incompatible by @fdopen: fdopen/opam-repository-mingw@23748b9
It's required for enabling Windows builds for BAP: BinaryAnalysisPlatform/bap#1254
line 75 of 'linenoise_stubs.c', should check if errno==EAGAIN
(in which case raise instead of retuning None
)
@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…
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
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.
https://github.com/Ailrun/ocaml-linenoise-issue-13
This repository also includes instructions to reproduce the bug.
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 ?
see if anything can be done?
along with #3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.