This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
st
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
removed truecolor stuff
master
Aurélien Aptel
16 years ago
parent
abe6f3b0e4
commit
0ecfcc39b0
1 changed files
with
0 additions
and
15 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-15
st.c
+ 0
- 15
st.c
View File
@ -364,21 +364,6 @@ void
tsetattr
(
int
*
attr
,
int
l
)
{
int
i
;
#
ifdef TRUECOLOR
/* ESC [ ? <fg/bg> ; <r> ; <g> ; <b> m */
Color
col
;
if
(
escseq
.
priv
&
&
escseq
.
len
=
=
4
)
{
/* True color extension :) */
col
=
(
escseq
.
arg
[
1
]
<
<
16
)
+
(
escseq
.
arg
[
2
]
<
<
8
)
+
escseq
.
arg
[
3
]
;
switch
(
escseq
.
arg
[
0
]
)
{
case
3
:
/* foreground */
term
.
c
.
attr
.
fg
=
col
;
break
;
case
4
:
/* background */
term
.
c
.
attr
.
bg
=
col
;
break
;
}
}
else
#
endif
for
(
i
=
0
;
i
<
l
;
i
+
+
)
{
switch
(
attr
[
i
]
)
{
case
0
:
Write
Preview
Loading…
Cancel
Save