# ex:ts=8 sw=4:
-# $OpenBSD: AddDelete.pm,v 1.77 2017/03/25 18:58:59 espie Exp $
+# $OpenBSD: AddDelete.pm,v 1.78 2017/07/01 12:23:22 espie Exp $
#
# Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org>
#
my $state = $self->new_state($cmd);
$state->handle_options;
+
+ require POSIX;
+
+
+ my $termios = POSIX::Termios->new;
+ my $lflag;
+
+ if (defined $termios->getattr) {
+ $lflag = $termios->getlflag;
+ }
+
+ if (defined $lflag) {
+ my $NOKERNINFO = 0x02000000; # not defined in POSIX
+ $termios->setlflag($lflag | $NOKERNINFO);
+ $termios->setattr;
+
+ }
+
local $SIG{'INFO'} = sub { $state->status->print($state); };
$self->framework($state);
+
+ if (defined $lflag) {
+ $termios->setlflag($lflag);
+ $termios->setattr;
+ }
return $state->{bad} != 0;
}