Notes:
Sy's first wave of revisions.
Changes:
* Minor code audit
o Removed some trailing whitespace
o I prefer 'case' over strings of elsif statements.
* Implemented 'echo' to allow simple things like /echo "some
text" to output to the main window.
o This sort of thing will be done with basically
everything everywhere. It's even possible to implement
different ways to do the same thing. Unfortunately, I'm
not inspired enough to remember how to do certain
tricks. For example, it could be possible to not require
the quotes. I don't know though.
o It would be nice to be able to emulate other scripting
languages, to make porting scripts a little easier. Ruby
is magical and could actually rise to this challenge.
* Fixed the copyright year. =)
* Added myself as a minor contributor, donating my
contributions to the codebase.
* Configuration loading is now wrapped in loadConfig.
o This makes it very helpful to just /loadConfig without
needing to exit and re-load the application.
o Todo: make it forget its current settings.
* Added platform autodetection to avoid using a dotfile on
Windows.
o Not tested on Windows.
o Could be expanded to be smarter, and choose an alternate
rc file if it exists.
o Should be made smarter to react properly to load errors.
I have the code in another application.
o set $RC_FILE = "auto" to use this.
* Added $RC_FILE to specify the dotfile.
* Created /help
o It will need significant expansion in the future.
* Fallback messages for the opening require statements.
* added $KEYBOARDTYPE. Set to 1 by default, it uses Martin's
keycodes. Set to anything else it'll use Sy's keycodes for
a US-104 keyboard.
o This resolves backspace, control-left/right.
* added getMessageLine
o For the heck of it.
* $ECHOKEYCODE => $ECHOKEYCODES
o It just seems right to me. Besides, a comment called it
$ECHOKEYCODES and I like comments better than code. ;)
|