Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Josh Hansen
termion
Commits
a69af178
Verified
Commit
a69af178
authored
Apr 21, 2019
by
Jeremy Soller
Browse files
Support redox target os with unix target family
parent
5992932c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Cargo.toml
View file @
a69af178
[package]
name
=
"termion"
version
=
"1.5.
1
"
version
=
"1.5.
2
"
authors
=
[
"ticki <Ticki@users.noreply.github.com>"
,
"gycos <alexandre.bury@gmail.com>"
,
"IGI-111 <igi-111@protonmail.com>"
]
description
=
"A bindless library for manipulating terminals."
repository
=
"https://gitlab.redox-os.org/redox-os/termion"
...
...
src/lib.rs
View file @
a69af178
...
...
@@ -17,7 +17,7 @@ extern crate numtoa;
#[path=
"sys/redox/mod.rs"
]
mod
sys
;
#[cfg(
unix
)]
#[cfg(
all(unix,
not(target_os
=
"redox"
))
)]
#[path=
"sys/unix/mod.rs"
]
mod
sys
;
...
...
src/sys/redox/tty.rs
View file @
a69af178
...
...
@@ -5,7 +5,7 @@ use super::syscall;
/// Is this stream a TTY?
pub
fn
is_tty
<
T
:
AsRawFd
>
(
stream
:
&
T
)
->
bool
{
if
let
Ok
(
fd
)
=
syscall
::
dup
(
stream
.as_raw_fd
(),
b"termios"
)
{
if
let
Ok
(
fd
)
=
syscall
::
dup
(
stream
.as_raw_fd
()
as
_
,
b"termios"
)
{
let
_
=
syscall
::
close
(
fd
);
true
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment