{{tag>Brouillon Console Shell}} # Pb pas d'historique en console pour certains shells ou pas d'historique en ligne de commande Un exemple de la console `ocaml` Source : http://stackoverflow.com/questions/11757239/how-to-repeat-last-command-in-ocaml-interpreter-shell Avec la console (ici exemple avec `ocaml`) pas d'historique. La flèche du haut me donne les caractères suivants : ~~~ $ ocaml ^[[A ~~~ La fléche du bas : ~~~ ^[[B ~~~ ## Solution avec rlwrap (GNU Readline) ~~~bash sudo apt-get install rlwrap ~~~ ~~~bash rlwrap ocaml ~~~ Ça marche aussi avec Netcat ~~~bash rlwrap nc smtp.acme.com 25 ~~~