mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Remove terminal queries
Thanks to improvements in System.Console, we no longer rely on these.
This commit is contained in:
1 parent
e612ccb1e8
commit
494f08a16b
3 files changed
+1
-34
No files matched your search
+1
-2
@@ -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})
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "pal.h"
|
||||
|
||||
PAL_BEGIN_EXTERNC
|
||||
|
||||
int32_t GetTerminalWidth();
|
||||
int32_t GetTerminalHeight();
|
||||
|
||||
PAL_END_EXTERNC
|
||||
|
||||
Reference in new issue
Block a user