Patch Messaging Character Counter

Introduction
One of the features I liked about my old Treo was the character counter built-in to the messaging application. I thought it would be useful on the Pre, so I modified the messaging application to show the current character count. I made this a separate page from the other modifications because it requires many code changes. Maybe the other messaging modifications could be rolled into this page as well.

Procedure
'''Note: Works in webOS 1.2, HOWEVER, line numbers are entirely incorrect, so currently the only way of doing it is manually patching based on the context of the surrounding lines. Take note not to use the main CharacterCounter.js mods in the main patch, but the subsection underneath.'''

Run the following commands:

In this example, I have the patch file located in my home directory under patches

This is what you should see if it ran properly:

These modifications will require LunaSysMgr to be restarted. A rescan will not work. After you've run the commands above, run one more command:

charcounter.patch
Post os1.1 update, you will need to swap in the following for the utilities/CharacterCounter.js section: (mod confirmed working by tcurtin, 7/24/09)

Acknowledgements
HattCzech