chetmurthy / ledit Goto Github PK
View Code? Open in Web Editor NEWLine editor, a la rlwrap (but written in OCaml)
License: Other
Line editor, a la rlwrap (but written in OCaml)
License: Other
OVERVIEW: Ledit is a line editor, allowing to use control commands like in emacs or in shells (bash, tcsh). To be used with interactive commands. It is written in OCaml and uses the library unix.cma. To compile, you need OCaml and Camlp5. They are free of charge and downloadable on the Web. COPYRIGHT: All files in this distribution are copyright 2001-2012 Institut National de Recherche en Informatique et Automatique (Inria). BUG REPORTS AND USER FEEDBACK: Please report bugs via Github's issues at: https://github.com/chetmurthy/ledit
I've been using ledit but it seems like there is no command that would work like ctrl-l in rlwrap
or bash. I find it very useful to have the currently edited portion of text at the top rather than at the bottom of the terminal window + it gets messy so it is nice to clear it some times. Is there any option to get this sort of behaviour -- screen getting cleared and the line appearing at the top of it? From the manual it seems there is no key binding that would accomplish that but perhaps I'm mistaken
Hi,
ledit
does not propagate the exit code from the invoked process:
$ ledit ocaml
OCaml version 4.14.0
Enter #help;; for help.
# exit 1;;
$ echo $?
0
This behavior is different from the behavior of another line editing tool rlwrap
:
$ rlwrap ocaml
OCaml version 4.14.0
Enter #help;; for help.
exit 1;;
$ echo $?
1
I think it would be nice if there is a commandline option in ledit that propagates the exit code of the process that was called. :)
[ERROR] The compilation of ledit.2.05 failed at "make all".
#=== ERROR while compiling ledit.2.05 =========================================#
# context 2.1.2 | linux/x86_64 | ocaml-base-compiler.5.0.0 | https://opam.ocaml.org#fe51bf9e
# path ~/.opam/5.0.0/.opam-switch/build/ledit.2.05
# command ~/.opam/opam-init/hooks/sandbox.sh build make all
# exit-code 2
# env-file ~/.opam/log/ledit-27799-9405d4.env
# output-file ~/.opam/log/ledit-27799-9405d4.out
### output ###
# camlp5r -I ext -loc loc ext/pa_def.ml -o ext/pa_def.ppo
# ocamlc -I `camlp5 -where` -c -impl ext/pa_def.ppo
# File "ext/pa_def.ml", line 76, characters 28-40:
# 76 | Stdpp.raise_with_loc loc (Stream.Error "can't eval")
# ^^^^^^^^^^^^
# Error: Unbound module Stream
# make: *** [Makefile:69 : ext/pa_def.cmo] Erreur 2
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.