Code Monkey home page Code Monkey logo

ledit's Introduction

  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

ledit's People

Contributors

chetmurthy avatar roglo avatar vbgl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sufrin dra27

ledit's Issues

Now clear option

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

Suggestion: a flag for enabling propagation of the exit code

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. :)

opam install ledit fails with ocaml 5.0.0

[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

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.