Remove terminal queries

Thanks to improvements in System.Console, we no longer rely on these.
This commit is contained in:
Andrew Schwartzmeyer committed 2016-01-14 10:07:29 -08:00
1 parent e612ccb1e8
commit 494f08a16b
3 files changed
+1 -34

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ add_library(psl-native SHARED
getfullyqualifiedname.cpp
issymlink.cpp
isexecutable.cpp
setdate.cpp
terminal.cpp)
setdate.cpp)
target_include_directories(psl-native PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-21
View File
@@ -1,21 +0,0 @@
#include "terminal.h"
#include <sys/ioctl.h>
int32_t GetTerminalWidth()
{
struct winsize ws;
if (-1 == ioctl(0,TIOCGWINSZ,&ws))
return -1;
return ws.ws_col;
}
int32_t GetTerminalHeight()
{
struct winsize ws;
if (-1 == ioctl(0,TIOCGWINSZ,&ws))
return -1;
return ws.ws_row;
}
-11
View File
@@ -1,11 +0,0 @@
#pragma once
#include "pal.h"
PAL_BEGIN_EXTERNC
int32_t GetTerminalWidth();
int32_t GetTerminalHeight();
PAL_END_EXTERNC