mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 04:46:22 +00:00
Add SI and SO control codes
SI and SO allows change the G0 and G1 selection. This implementation is not full vt100 compatible, but it is complatible with linux virtual terminal implementation. For full vt100 compatibility we need remake a lot of stuff relate to the different charmaps. --- st.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
This commit is contained in:
parent
fbfa1f83eb
commit
034dc71fb8
1 changed files with 5 additions and 2 deletions
7
st.c
7
st.c
|
@ -1814,9 +1814,12 @@ tputc(char *c, int len) {
|
||||||
csireset();
|
csireset();
|
||||||
term.esc = ESC_START;
|
term.esc = ESC_START;
|
||||||
return;
|
return;
|
||||||
case '\016': /* XXX: SO */
|
case '\016': /* SO */
|
||||||
case '\017': /* XXX: SI */
|
term.c.attr.mode |= ATTR_GFX;
|
||||||
break;
|
break;
|
||||||
|
case '\017': /* SI */
|
||||||
|
term.c.attr.mode &= ~ATTR_GFX;
|
||||||
|
return;
|
||||||
case '\032': /* SUB */
|
case '\032': /* SUB */
|
||||||
case '\030': /* CAN */
|
case '\030': /* CAN */
|
||||||
csireset();
|
csireset();
|
||||||
|
|
Loading…
Reference in a new issue