Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b02604a5
Commit
b02604a5
authored
7 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add case and comment for all standard sequences.
Also, delineate standard from non-standard.
parent
26d50dde
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/cterm.c
+56
-5
56 additions, 5 deletions
src/conio/cterm.c
with
56 additions
and
5 deletions
src/conio/cterm.c
+
56
−
5
View file @
b02604a5
...
...
@@ -1622,7 +1622,7 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
break
;
}
else
if
(
seq
->
ctrl_func
[
1
])
{
//
Private c
ontrol
f
unction
else
if
(
seq
->
ctrl_func
[
1
])
{
//
C
ontrol
F
unction
with Intermediate Character
// Font Select
if
(
strcmp
(
seq
->
ctrl_func
,
" D"
)
==
0
)
{
seq_default
(
seq
,
0
,
0
);
...
...
@@ -1638,6 +1638,10 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
break
;
}
}
/*
* END OF STANDARD CONTROL FUNCTIONS
* AFTER THIS IS ALL PRIVATE EXTENSIONS
*/
// Communication speed
else
if
(
strcmp
(
seq
->
ctrl_func
,
"*r"
)
==
0
)
{
/*
...
...
@@ -1789,6 +1793,8 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
col
=
cterm
->
width
;
GOTOXY
(
col
,
row
);
break
;
case
'I'
:
/* TODO? Cursor Forward Tabulation */
break
;
case
'J'
:
/* Erase In Page */
seq_default
(
seq
,
0
,
0
);
switch
(
seq
->
param_int
[
0
])
{
...
...
@@ -1853,7 +1859,7 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
GOTOXY
(
col
,
row
);
break
;
case
'M'
:
/*
ANSI music and also supposed to be delete line!
*/
case
'M'
:
/*
Delete Line (also ANSI music)
*/
if
(
cterm
->
music_enable
==
CTERM_MUSIC_ENABLED
)
{
cterm
->
music
=
1
;
}
...
...
@@ -1866,12 +1872,14 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
}
break
;
case
'N'
:
case
'N'
:
/* Erase In Field (also ANSI Music) */
/* BananANSI style... does NOT start with MF or MB */
/* This still conflicts (ANSI erase field) */
if
(
cterm
->
music_enable
>=
CTERM_MUSIC_BANSI
)
cterm
->
music
=
2
;
break
;
case
'O'
:
/* TODO? Erase In Area */
break
;
case
'P'
:
/* Delete char */
row
=
WHEREY
();
col
=
WHEREX
();
...
...
@@ -1885,6 +1893,10 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
CLREOL
();
GOTOXY
(
col
,
row
);
break
;
case
'Q'
:
/* TODO? Select Editing Extent */
break
;
case
'R'
:
/* TODO? Active Position Report */
break
;
case
'S'
:
/* Scroll Up */
seq_default
(
seq
,
0
,
1
);
for
(
j
=
0
;
j
<
seq
->
param_int
[
0
];
j
++
)
...
...
@@ -1905,6 +1917,10 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
GOTOXY(1,1);
break;
#endif
case
'V'
:
/* TODO? Preceding Page */
break
;
case
'W'
:
/* TODO? Cursor Tabulation Control */
break
;
case
'X'
:
/* Erase Character */
seq_default
(
seq
,
0
,
1
);
i
=
seq
->
param_int
[
0
];
...
...
@@ -1919,6 +1935,8 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
PUTTEXT
(
cterm
->
x
+
WHEREX
()
-
1
,
cterm
->
y
+
WHEREY
()
-
1
,
cterm
->
x
+
WHEREX
()
-
1
+
i
-
1
,
cterm
->
y
+
WHEREY
()
-
1
,
p2
);
free
(
p2
);
break
;
case
'Y'
:
/* TODO? Cursor Line Tabulation */
break
;
case
'Z'
:
/* Cursor Backward Tabulation */
seq_default
(
seq
,
0
,
1
);
i
=
strtoul
(
cterm
->
escbuf
+
1
,
NULL
,
10
);
...
...
@@ -1932,7 +1950,21 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
}
break
;
case
'b'
:
/* ToDo? Banana ANSI/Repeat */
case
'['
:
/* TODO? Start Reversed String */
break
;
case
'\\'
:
/* TODO? Parallel Texts */
break
;
case
']'
:
/* TODO? Start Directed String */
break
;
case
'^'
:
/* TODO? Select Implicit Movement Direction */
break
;
case
'_'
:
/* NOT DEFIFINED IN STANDARD */
break
;
case
'`'
:
/* TODO? Character Position Absolute */
break
;
case
'a'
:
/* TODO? Character Position Forward */
break
;
case
'b'
:
/* ToDo? Repeat */
break
;
case
'c'
:
/* Device Attributes */
seq_default
(
seq
,
0
,
0
);
...
...
@@ -1943,9 +1975,22 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
}
}
break
;
case
'd'
:
/* TODO? Line Position Absolute */
break
;
case
'e'
:
/* TODO? Line Position Forward */
break
;
// for case 'f': see case 'H':
case
'g'
:
/* ToDo? Tabulation Clear */
break
;
case
'i'
:
/* ToDo? Printing (Media Copy) */
case
'h'
:
/* TODO? Set Mode */
break
;
case
'i'
:
/* ToDo? Media Copy (Printing) */
break
;
case
'j'
:
/* TODO? Character Position Backward */
break
;
case
'k'
:
/* TODO? Line Position Backward */
break
;
case
'l'
:
/* TODO? Reset Mode */
break
;
case
'm'
:
/* Select Graphic Rendition */
seq_default
(
seq
,
0
,
0
);
...
...
@@ -2086,6 +2131,12 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
break
;
}
break
;
case
'o'
:
/* ToDo? Define Area Qualification */
break
;
/*
* END OF STANDARD CONTROL FUNCTIONS
* AFTER THIS IS ALL PRIVATE EXTENSIONS
*/
case
'p'
:
/* ToDo? ANSI keyboard reassignment */
break
;
case
'q'
:
/* ToDo? VT100 keyboard lights */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment