31 lines
520 B
C
31 lines
520 B
C
/*
|
|
* Windows version of sshtty* routines implemented in sshtty.c
|
|
*/
|
|
|
|
#include <Windows.h>
|
|
#include "..\..\..\sshpty.h"
|
|
static struct termios _saved_tio;
|
|
static int _in_raw_mode = 0;
|
|
|
|
/*
|
|
* TTY raw mode routines for Windows
|
|
*/
|
|
|
|
struct termios term_settings;
|
|
|
|
struct termios *
|
|
get_saved_tio(void) {
|
|
memset(&term_settings, 0, sizeof(term_settings));
|
|
return &term_settings;
|
|
}
|
|
|
|
void
|
|
leave_raw_mode(int quiet) {
|
|
ConExitRawMode();
|
|
}
|
|
|
|
void
|
|
enter_raw_mode(int quiet) {
|
|
ConEnterRawMode();
|
|
}
|