1

Does anyone know of an existing customisable frontend to command-line apps/scripts whose most basic function would work something like this

  • executes commands like ps -aefH
  • based on configurable regexes patterns like PIDs are recognised and turned into links
  • when a link beneath a PID is clicked a menu appears presenting other commands to run that would receive the PID as an argument (e.g. show memory stats, dump core, send signal)

Thanks!

5
  • That would "prepare" the next command line, right? Very cool idea, I would certainly use it :-)
    – Nicolas Raoul
    Commented Apr 3, 2019 at 4:14
  • Ah, important: For what operating system and shell? bash on Linux?
    – Nicolas Raoul
    Commented Apr 3, 2019 at 4:15
  • You tagged "web-apps"... Does it mean you are currently typing commands via some kind of web interface?
    – Nicolas Raoul
    Commented Apr 3, 2019 at 4:16
  • Yes, I suppose there could be an option to prepare the next command-line rather than just execute it. I'm using a linux terminal, but the reason for a web-app is that I don't think terminals allow you to easily "enrich" a command's output with links (and potentially also documentation bubbles, etc..). With a browser extension like Tridactyl it could still be keyboard-based. If there's no existing projects & I start developing one unsure of what platform to use, but it should be able to run programs written in any language. OS portability shouldn't be too hard either.
    – eug
    Commented Apr 3, 2019 at 5:49
  • Edit this into your question please. Comments can disappear.
    – user416
    Commented Apr 3, 2019 at 7:32

1 Answer 1

2

Eclipse allows plugins to register pattern matchers on the console, that can then be used to decorate the console with hyperlinks. If an Eclipse-based frontend is OK for you, then these are resources that can get you started:

I did something similar before to decorate Stacktraces in the console output of Java programs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.