Skip to content

Commit 429c3f5

Browse files
committed
Update ghost_terminal.cpp
1 parent 418ae19 commit 429c3f5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ghost_terminal.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
#include "..\SSTP_linker\include\SSTP.hpp"
22
#include <iostream>
3-
#ifdef _WIN32
4-
#include <fcntl.h>
5-
#include <io.h>
6-
#endif
73
int main(){
84
using namespace SSTP_link_n;
95
using namespace std;
10-
#ifdef _WIN32
11-
_setmode(_fileno(stdout), _O_U16TEXT);
12-
_setmode(_fileno(stdin), _O_U16TEXT);
13-
#endif
6+
wcin.imbue(locale(""));
7+
wcout.imbue(locale(""));
148
SSTP_link_t linker({{L"Charset",L"UTF-8"},{L"Sender",L"Ghost Terminal"}});
159
{
1610
auto names = linker.NOTYFY({ { L"Event", L"ShioriEcho.GetName" } });

0 commit comments

Comments
 (0)