Do ISO-6429(ECMA-48) compatible control function parsing and add a test
script
Squashed commit of the following:

commit 242238263bd5d0a577e19038cb444b2f8a335ae5
Author: saitoha <user@zuse.jp>
Date:   Thu Jan 10 22:03:44 2013 +0900

    Check datalen before parsing final byte

commit 5d3b757ea3b7fa04cb81f2627c50c9db48491f28
Author: saitoha <user@zuse.jp>
Date:   Thu Jan 10 22:02:04 2013 +0900

    Fix typo and some bad style, such as blank spaces at end of line

commit 6222217bc71ec3aadc302e6f777da974c6bbdb79
Author: saitoha <user@zuse.jp>
Date:   Wed Jan 9 00:56:09 2013 +0900

    Fix debug code, and add some comments

commit 0e742a6ce554639578e227e4a43954d94aeacd2b
Author: saitoha <user@zuse.jp>
Date:   Wed Jan 9 00:55:40 2013 +0900

    Drop VT100TCC.u.csi.{modifier,question} parameters

commit c70c5ad016f4ae84313a7cd86e09d1c600dca010
Author: saitoha <user@zuse.jp>
Date:   Tue Jan 8 23:52:27 2013 +0900

    Improve control function's dispatching system

commit 4bb29d918a8f83855b93aa021c8ad2aca9dd91f1
Author: saitoha <user@zuse.jp>
Date:   Tue Jan 8 22:40:59 2013 +0900

    Add a test script for ISO-6429 control function parsing

commit 41daa5c7d4d54abb4ae158320b771cd7a9314be6
Author: saitoha <user@zuse.jp>
Date:   Tue Jan 8 21:54:25 2013 +0900

    Do ISO-6429(ECMA-48) compatible control function parsing

commit ff239e4da9988a8f2e5aa44b151bb6fd4d6ae0fd
Author: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Date:   Wed Jan 23 10:03:15 2013 +0100

    Fix a typo in README.md.

commit 4244cc0b22b1c4117ffd6d7addb0bc9ea2d84ca8
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 23 22:31:30 2013 -0800

    Add pref to enable title reporting

commit 3098f0c66591bf2553c689f0b2a86624c3309892
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 23 21:29:22 2013 -0800

    Performance improvement--do not allocate a new CharacterRun for each character. Also cache colors in constructRuns.

commit d969af95b51d5c29b84dc3051fa94bed90bedb7d
Author: George Nachman <iterm2.xyz@georgester.com>
Date:   Wed Jan 23 20:18:06 2013 -0800

    Remove object files from tmux, add tmux/.deps, use SparkleSigningTools directory

commit f944f21c08e4c22ff864a9e337524d2ae69acf9d
Author: George Nachman <iterm2.xyz@georgester.com>
Date:   Wed Jan 23 20:17:15 2013 -0800

    Use NSMakeRect, not CGRectMake. Too much iOS coding for me.

commit e74ab0951815acb2b9af2c81d45f57071e410923
Author: George Nachman <git.xyz@georgester.com>
Date:   Mon Jan 21 21:33:23 2013 -0800

    Add Sparkle signing tools

commit c3fc6a4a09313d7072babaad1ac3f13b24290c65
Author: George Nachman <git.xyz@georgester.com>
Date:   Mon Jan 21 12:45:51 2013 -0800

    Add closing a session with cmd-w as an interaction that turns off the 'don't quit when the last window is closed' safety valve

commit ab17b30db0a52d3812fbe51f602a67b071b14d64
Author: George Nachman <git.xyz@georgester.com>
Date:   Mon Jan 21 12:42:13 2013 -0800

    In issue 999, a problem was raised that iTerm2 won't quit when the last window is closed if it's been running for less than 10 seconds. The 10-second safety valve was added to allow you to fix a busted profile which could cause the last window to close immediately when the app starts. The problem is that you might want a short session. This change disables the safety valve if you type in a session or intentionally close the window.

commit 09c165372fc7a83ff2c9513323d5afb6e654f945
Author: George Nachman <git.xyz@georgester.com>
Date:   Sun Jan 20 09:58:56 2013 -0800

    Fix up drawing of star in ProfileListView (it clipped sometimes)

commit c0ea5d0bb769b17b7879cf6373f31aa6f6d5d60b
Author: George Nachman <git.xyz@georgester.com>
Date:   Fri Jan 18 18:58:14 2013 -0800

    Only ask about saving prefs to custom folder when feature is enabled and no folder is already specifie

commit a74a20fc367802ed64f18d06bb137ccf901cc1c0
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 9 23:35:31 2013 -0800

    Add gesture recognizer for three finger taps to act like three finger clicks, gated by ThreeFingerTapEmulatesThreeFingerClick pref

commit be5e48d875d129a64db58c40a23dd24d4f4f6c58
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 9 21:45:11 2013 -0800

    When opening a URL with no associated profile to handle it, use the default profile

commit 1efe0e7f811f4b9165cecba4ae46c8182a463e61
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 9 21:23:29 2013 -0800

    If the tmux profile specifies a nonpostive value for rows or columns, use 1 instead to prevent an assertion

commit 8d5c272461c2dab5ee3a14d68e1a5985deee296a
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 9 21:17:13 2013 -0800

    Allow clicks on ipv6 urls to open in browser

commit e93df787d5eebb2c2c29028d3eb65524bf2935a0
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 9 21:08:22 2013 -0800

    Render private-use range unicode chars (except the four reserved by iterm). Some fonts use them for fancy special characters and it's nice to support that. The down side is that for normal fonts they'll render a bit uglier as a double-width character, but you shouldn't get them often anyway

commit 2ee0d311a629e04acd072cd6754098b87535e575
Author: George Nachman <git.xyz@georgester.com>
Date:   Sun Jan 6 13:17:16 2013 -0800

    Support bonjour hosts with nonstandard ssh ports

commit 34fbcf35f153e2eadeff9e449456c9899b1f19e1
Author: George Nachman <git.xyz@georgester.com>
Date:   Sun Jan 6 13:06:56 2013 -0800

    When the cursor shape is changed immediately redraw it

commit 49cf6165ffb55aac82ab262d3794cbace807aaad
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 2 21:58:11 2013 -0800

    Fix DECSTR to set wraparound mode to YES

commit 5204386ce7117ae95f696e34e4a574ccbe4bb9cf
Author: George Nachman <git.xyz@georgester.com>
Date:   Wed Jan 2 21:44:53 2013 -0800

    Limit the max length of selection that's passed to services to 100k lines to avoid huge slowdowns

commit 1d4a3a78bb8216826b77b2248aaaffb75fd8c7cf
Author: George Nachman <gln@google.com>
Date:   Wed Jan 2 08:46:57 2013 -0800

    Fix warning in PTYSession about format specifier for size_T

commit 232615896480b13de394b7d533ae021a3aa287cf
Author: George Nachman <git.xyz@georgester.com>
Date:   Tue Jan 1 22:24:35 2013 -0800

    Fix a bunch of analyzer warnings, including a memory leak of ToolWrapper

commit a59966080037ab5610325f134ebd69f6d44dbe0b
Author: George Nachman <git.xyz@georgester.com>
Date:   Tue Jan 1 21:15:59 2013 -0800

    Fix a bunch of analyzer warnings, including several memory leaks

commit 00cfd6933937faa17c1df63cfd95fa623f713c39
Author: George Nachman <git.xyz@georgester.com>
Date:   Tue Jan 1 15:45:27 2013 -0800

    Fix analyzer warnings in PTYTextView.m

commit f6c573d0885606fc718d84e22a494bc0b5a68197
Author: George Nachman <git.xyz@georgester.com>
Date:   Mon Dec 31 20:36:38 2012 -0500

    Fix warnings and analyzer issues

commit 36378e822a0800e185b9d96e1784a703bdc8cb45
Author: George Nachman <git.xyz@georgester.com>
Date:   Mon Dec 31 19:57:27 2012 -0500

    Fix warning in PTYScrollView.m

commit 4288b03218053bbe6887fa9466e9db4b98763655
Author: George Nachman <gln@google.com>
Date:   Wed Jan 2 08:38:36 2013 -0800

    Add todo about syncing access to fd

commit c854497bcc05204d034bca9d956e74bc0d32956e
Author: George Nachman <gln@google.com>
Date:   Mon Dec 31 15:36:30 2012 -0800

    Fix warnings in PseudoTerminal.m

commit 7b934a672c89e78f99cebc23cb1a0db99e22ef8d
Author: George Nachman <gln@google.com>
Date:   Mon Dec 31 15:20:14 2012 -0800

    Fix warnings in VT100Screen.m

commit 5f9798d51f5d3ef58bd1cc6aeab37699a1a734af
Author: George Nachman <gln@google.com>
Date:   Mon Dec 31 15:13:21 2012 -0800

    Fix warnings in VT100Terminal.m

commit f7407309bd5d1c3ad27b5ccf4075af4e1660f066
Author: George Nachman <gln@google.com>
Date:   Mon Dec 31 14:25:38 2012 -0800

    Rename clearAllocation to clearRange

commit 030b5acab86c9b84d26a2e3c384e4f42b9755628
Author: George Nachman <gln@google.com>
Date:   Mon Dec 31 14:24:31 2012 -0800

    Fix crashing bug when printing binary files. Not sure of the exact cause, but the code is much cleaner and full of asserts now.
Fix a problem when parameter length exceeds VT100CSIPARAM_MAX
ex. echo -en '\033[;;;;;;;;;;;;;;;;'
Do continuous parsing
Add tests for continuous parsing and long parameter
Add new option "useCanonicalParser"
Keep the old version of CSI parser
Add "Use canonical parser" option into preference panel