|
@@ -68,28 +68,6 @@
|
|
|
#include <linux/unistd.h>
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
-void get_term_dimensions(struct winsize *ws)
|
|
|
-{
|
|
|
- char *s = getenv("LINES");
|
|
|
-
|
|
|
- if (s != NULL) {
|
|
|
- ws->ws_row = atoi(s);
|
|
|
- s = getenv("COLUMNS");
|
|
|
- if (s != NULL) {
|
|
|
- ws->ws_col = atoi(s);
|
|
|
- if (ws->ws_row && ws->ws_col)
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-#ifdef TIOCGWINSZ
|
|
|
- if (ioctl(1, TIOCGWINSZ, ws) == 0 &&
|
|
|
- ws->ws_row && ws->ws_col)
|
|
|
- return;
|
|
|
-#endif
|
|
|
- ws->ws_row = 25;
|
|
|
- ws->ws_col = 80;
|
|
|
-}
|
|
|
-
|
|
|
static void perf_top__update_print_entries(struct perf_top *top)
|
|
|
{
|
|
|
if (top->print_entries > 9)
|