This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Admicos's profile picture

ghv - Glorified Help Viewer

Started by Admicos, 08 November 2016 - 06:58 PM
Admicos #1
Posted 08 November 2016 - 07:58 PM
USAGE:
[indent=1]ghv [options] <help topic or file name>[/indent]

OPTIONS:
[indent=1]–nocolor -nc: Disables color
–noformat -nf: Disables formatting[/indent]

DOWNLOADS:
[indent=1]pastebin: gzz1Gt4V
packman: admicos/ghv[/indent]

More information about ghv can be found at the ghv file available here (will get downloaded with the packman package, so simply do "ghv ghv" to view) (if you download it manually, it must have a ".ghv" extension, but do not put the extension in the program argument)
Edited on 08 November 2016 - 07:41 PM
supernicejohn #2
Posted 08 November 2016 - 08:31 PM
Cool, some minor issues are flickering and line wraps splitting words, but otherwise a very good program!
I like this type of program, in that it's an implement and forget type of deal, (ok maybe not implement, download rather) and it just improves the experience without changing anything critical.
Also, I believe if you capture the "char" event instead of "key" for "q", then you wouldn't have the "q" popping up afterwards in the shell.

(If you type ghv help, it opens the help for help, and I realize why, but it's funny when it says "help is the help tool you're currently using." Nope!)
Admicos #3
Posted 08 November 2016 - 08:39 PM
Cool, some minor issues are flickering and line wraps splitting words, but otherwise a very good program!
I like this type of program, in that it's an implement and forget type of deal, (ok maybe not implement, download rather) and it just improves the experience without changing anything critical.
Also, I believe if you capture the "char" event instead of "key" for "q", then you wouldn't have the "q" popping up afterwards in the shell.

(If you type ghv help, it opens the help for help, and I realize why, but it's funny when it says "help is the help tool you're currently using." Nope!)
The flickering is probably due to the text rendering before the UI, and unless there is a term.setVisible, i need to create a whole new window to fix it. (fixed for the next release)
And for the key event, it will get fixed in the next release. (fixed for the next release)
Also, the wrapping is because of the function i use which just checks for the line length and doesn't account for words, might get fixed someday.
Edited on 09 November 2016 - 09:50 AM