-D option to not mangle display.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@733 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-09-14 01:55:54 +00:00
parent 2322e86659
commit 6ba7a91147

View File

@@ -61,7 +61,7 @@ RCSID("$Id$");
/*
* Initialize variables.
*/
void
void
tninit()
{
init_terminal();
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
*/
autologin = -1;
while ((ch = getopt(argc, argv, "78EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
while((ch = getopt(argc, argv, "78DEKLS:X:acde:fFk:l:n:rx")) != EOF) {
switch(ch) {
case '8':
eight = 3; /* binary output and input */
@@ -137,6 +137,13 @@ int main(int argc, char **argv)
case '7':
eight = 0;
break;
case 'D': {
/* sometimes we don't want a mangled display */
char *p;
if((p = getenv("DISPLAY")))
env_define("DISPLAY", p);
break;
}
case 'E':
rlogin = escape = _POSIX_VDISABLE;
break;