mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-22 07:30:40 +00:00
more vt100 states
git-svn-id: svn://qnap.local/TwoTerm/trunk@1761 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
d8ee6e8894
commit
7774937656
25
VT100.mm
25
VT100.mm
@ -24,7 +24,9 @@ enum {
|
||||
StateDCAX,
|
||||
StateBracket,
|
||||
StateBracketQuestion,
|
||||
StatePound
|
||||
StatePound,
|
||||
StateRParen,
|
||||
StateLParen
|
||||
};
|
||||
|
||||
|
||||
@ -654,6 +656,14 @@ enum {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_state == StateRParen || _state == StateLParen)
|
||||
{
|
||||
NSLog(@"[%s %s]: unrecognized escape character: `ESC %c %c' (%02x)", object_getClassName(self), sel_getName(_cmd), _state == StateRParen ? ')' : '(', c, (int)c);
|
||||
|
||||
_state = StateText;
|
||||
return;
|
||||
}
|
||||
|
||||
if (_state == StateEsc)
|
||||
{
|
||||
switch(c)
|
||||
@ -662,6 +672,19 @@ enum {
|
||||
case 0x07f:
|
||||
break;
|
||||
|
||||
|
||||
case '(':
|
||||
_state = StateLParen;
|
||||
_parms.clear();
|
||||
_parms.push_back(0);
|
||||
break;
|
||||
|
||||
case ')':
|
||||
_state = StateLParen;
|
||||
_parms.clear();
|
||||
_parms.push_back(0);
|
||||
break;
|
||||
|
||||
case '[':
|
||||
_state = StateBracket;
|
||||
_parms.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user