X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/99f28949e956573849916b19cac2b1bc6871beb7..fd2d830ad82595c97afd2c453788c9ccc5fa2182:/sshtty.c diff --git a/sshtty.c b/sshtty.c index 844a5c06..21ade4e5 100644 --- a/sshtty.c +++ b/sshtty.c @@ -1,3 +1,4 @@ +/* $OpenBSD: sshtty.c,v 1.13 2008/05/19 15:45:07 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -35,19 +36,21 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshtty.c,v 1.8 2006/02/07 01:52:50 stevesk Exp $"); +#include +#include #include +#include #include "sshpty.h" static struct termios _saved_tio; static int _in_raw_mode = 0; -struct termios +struct termios * get_saved_tio(void) { - return _saved_tio; + return _in_raw_mode ? &_saved_tio : NULL; } void