# I<CreateTTY> bits control attempts to create a new TTY on events:
# 1: on fork() 2: debugger is started inside debugger
# 4: on startup
-# c) Code to auto-create a new TTY window on OS/2 (currently one one
+# c) Code to auto-create a new TTY window on OS/2 (currently one
# extra window per session - need named pipes to have more...);
# d) Simplified interface for custom createTTY functions (with a backward
# compatibility hack); now returns the TTY name to use; return of ''
);
if (!$OUT) { die "Unable to connect to remote host: $remoteport\n"; }
$IN = $OUT;
- } elsif ($CreateTTY & 4) {
- create_IN_OUT(4);
} else {
+ create_IN_OUT(4) if $CreateTTY & 4;
if (defined $console) {
my ($i, $o) = split /,/, $console;
$o = $i unless defined $o;
}
&warn("Too late to set TTY, enabled on next `R'!\n") if $term and @_;
# Useful if done through PERLDB_OPTS:
- $tty = shift if @_;
+ $console = $tty = shift if @_;
$tty or $console;
}