ComputerCraft

ComputerCraft

21M Downloads

[Enhancement] Idea: man pages

Restioson opened this issue ยท 10 comments

commented

It would be useful if we could have a command line utility to print out a lengthy help page for a utility, essentially the man command from *nix. We could store the man page in the same folder as the program, with the same name as the program, and with the extension .man.txt, or we could store it at /man/program_name/man.txt. This is just a thought.

commented

Can you do help pastebin? I'll try it out in a sec.

commented

There's the help program.

commented

You can, it even works with most APIs. Try help term.

commented

Yeah, help exists. However, it would be nice if it had less-like pagination. For instance: step forwards/back with arrow keys and page-up/down*, quit early with q, etc...

*Sure, you can also use C-f to move forwards, but ctrl keys are a faff to add and probably not needed.

commented

@SquidDev I've been (sort of) working on some changes to the textutils library and that's one of the things I plan to implement.

commented

I could try to fix up the help system if you want?

commented

This would be very nice, I love manpages!

commented

We already have "help".

commented

@dan200 There have been some comments that the built-in help files aren't always that useful. Part of these files' usefulness is limited by the method by which they are read (help). What would your stance be on someone contributing a more powerful help browser? What form this takes is probably up for discussion.

commented

Cool, was just an idea ๐Ÿ˜„