This website works better with JavaScript.
Home
Explore
Help
Sign In
Linux
/
st
generated from
gmarx/git-template
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
added VT100 save&load cursor support.
master
Aurélien Aptel
14 years ago
parent
3ba517e796
commit
636c369d86
1 changed files
with
6 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
st.c
+ 6
- 0
st.c
View File
@ -868,6 +868,12 @@ tputc(char c) {
term
.
mode
&
=
~
MODE_APPKEYPAD
;
term
.
mode
&
=
~
MODE_APPKEYPAD
;
term
.
esc
=
0
;
term
.
esc
=
0
;
break
;
break
;
case
'
7
'
:
tcursor
(
CURSOR_SAVE
)
;
break
;
case
'
8
'
:
tcursor
(
CURSOR_LOAD
)
;
break
;
default
:
default
:
fprintf
(
stderr
,
"
erresc: unknown sequence ESC %02X '%c'
\n
"
,
c
,
isprint
(
c
)
?
c
:
'
.
'
)
;
fprintf
(
stderr
,
"
erresc: unknown sequence ESC %02X '%c'
\n
"
,
c
,
isprint
(
c
)
?
c
:
'
.
'
)
;
term
.
esc
=
0
;
term
.
esc
=
0
;
Write
Preview
Loading…
Cancel
Save