/****************************************************************************
- * Copyright 2018-2022,2023 Thomas E. Dickey *
+ * Copyright 2018-2023,2024 Thomas E. Dickey *
* Copyright 1998-2016,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
#include <transform.h>
#include <tty_settings.h>
-MODULE_ID("$Id: tput.c,v 1.102 2023/04/08 16:26:36 tom Exp $")
+MODULE_ID("$Id: tput.c,v 1.104 2024/04/20 22:20:51 tom Exp $")
#define PUTS(s) fputs(s, stdout)
}
#if HAVE_SIZECHANGE
- set_window_size(fd, &lines, &columns);
+ {
+ NCURSES_INT2 my_rows = lines;
+ NCURSES_INT2 my_cols = columns;
+ set_window_size(fd, &my_rows, &my_cols);
+ lines = my_rows;
+ columns = my_cols;
+ }
#else
(void) fd;
#endif
provided = 0;
for (narg = 1; narg < argc; ++narg) {
char *ending = NULL;
- long check = strtol(argv[narg], &ending, 10);
+ long check = strtol(argv[narg], &ending, 0);
if (check < 0 || ending == argv[narg] || *ending != '\0')
break;
provided = narg;