Tuesday, April 30, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1204  / 3 Years ago, sat, june 26, 2021, 11:22:46

There are some command line programs that take input from the user, but do not provide editing capabilities, like sh (alias dash), or nslookup and others.



There is a way to force such applications to provide editing capabilities to correct the current line or recall previous lines?


More From » command-line

 Answers
5

There are at least three tool to obtain what is required, these are:




  • rlwrap -- readline feature command line wrapper

  • rlfe -- a front-end using readline to "cook" input lines for other programs

  • ledit -- line editor for interactive programs



You can use each of them simpy prepeding to command to wrap, as in



rlwrap sh


The first, rlwrap, seems the best, because the second make the line in bold, and the third fails to show the prompt with sh, nevertheless it works.


[#41524] Saturday, June 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herfor

Total Points: 490
Total Questions: 101
Total Answers: 110

Location: Guadeloupe
Member since Mon, Jan 24, 2022
2 Years ago
;