Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isTTY function #1622

Merged
merged 29 commits into from
Feb 3, 2019
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4d12933
Add isTTY function
dsseng Jan 29, 2019
b5a3e54
Fix lint errors
dsseng Jan 29, 2019
45f83ae
Add rid argument to IsTTY
dsseng Jan 30, 2019
75db01f
Remove unused code
dsseng Jan 30, 2019
b3a1bb0
Add an example for IsTTY
dsseng Jan 30, 2019
c15c4b6
Add a test for IsTTY
dsseng Jan 30, 2019
b81ffb3
Remove unnecessary if..else
dsseng Jan 30, 2019
d7c4b70
remove unused var from test
dsseng Jan 31, 2019
3085dc1
Format code
dsseng Jan 31, 2019
f26ca3a
Change IsTTY output format
dsseng Feb 1, 2019
533907d
Get TTY info in 1 op
dsseng Feb 1, 2019
2c56aba
Format code
dsseng Feb 1, 2019
16497d1
Add IsTTY result caching
dsseng Feb 1, 2019
9c7e56f
Remove IsTTY caching
dsseng Feb 1, 2019
9b1d935
Update IsTTY example
dsseng Feb 1, 2019
e32d2db
Use inline interface for IsTTY
dsseng Feb 1, 2019
fb9ab75
Add a simple test to os_test
dsseng Feb 1, 2019
6f20977
Fix inline interface & move unit test link
dsseng Feb 1, 2019
f959403
Fix IsTTY example
dsseng Feb 2, 2019
91250f9
Use inline interface instead of classic one
dsseng Feb 2, 2019
d93d1e7
Merge branch 'is-tty' of https://github.com/sh7dm/deno into is-tty
dsseng Feb 2, 2019
9c8af0c
Fix some issues in IsTTY test
dsseng Feb 2, 2019
2ce79c1
Move IsTTY test to another file
dsseng Feb 2, 2019
273628e
Remove tty_capture, just import it
dsseng Feb 2, 2019
67543de
Clean up IsTTY test
dsseng Feb 2, 2019
1ef9968
Clean up IsTTY test
dsseng Feb 2, 2019
7ebe4bc
Skip IsTTY test on Windows because it was failing
dsseng Feb 2, 2019
4dc9e25
Merge branch 'master' into is-tty
Feb 2, 2019
536b5ac
Clean IsTTY test
dsseng Feb 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused code
  • Loading branch information
dsseng committed Jan 30, 2019
commit 75db01faa0e6b44c476dae04f8e1ffadd5bd7cc6
1 change: 0 additions & 1 deletion src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ fn op_is_tty(
_data: libdeno::deno_buf,
) -> Box<Op> {
let rid = base.inner_as_is_tty().unwrap().rid();
//let rid = 0;
let is_tty: bool;

if rid < 3 { // std in/out/err -- check if is terminal
Expand Down