X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fclear.c;h=85a5ea541b688217e38d5d09621630d247ffe9f0;hp=7eac9b1e5b5bb4087f104d24170b2faf2246e998;hb=47d2fb4537d9ad5bb14f4810561a327930ca4280;hpb=0485620c03e69b1b58a6b12e5e45c98415fc7575;ds=sidebyside diff --git a/progs/clear.c b/progs/clear.c index 7eac9b1e..85a5ea54 100644 --- a/progs/clear.c +++ b/progs/clear.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +41,7 @@ #include #include -MODULE_ID("$Id: clear.c,v 1.19 2017/08/19 13:40:22 tom Exp $") +MODULE_ID("$Id: clear.c,v 1.23 2020/02/02 23:34:34 tom Exp $") const char *_nc_progname = "clear"; @@ -80,6 +81,7 @@ main( switch (c) { case 'T': use_env(FALSE); + use_tioctl(TRUE); term = optarg; break; case 'V': @@ -96,7 +98,7 @@ main( if (optind < argc) usage(); - fd = save_tty_settings(&tty_settings); + fd = save_tty_settings(&tty_settings, FALSE); setupterm(term, fd, (int *) 0);