Page MenuHomeFreeBSD

D16455.id.diff
No OneTemporary

D16455.id.diff

Index: head/usr.bin/top/screen.c
===================================================================
--- head/usr.bin/top/screen.c
+++ head/usr.bin/top/screen.c
@@ -54,6 +54,8 @@
static struct termios new_settings;
static char is_a_terminal = false;
+#define NON_INTERACTIVE_MODE_VIRTUAL_SCREEN_WIDTH 1024
+
void
init_termcap(bool interactive)
{
@@ -68,6 +70,7 @@
if (!interactive)
{
/* pretend we have a dumb terminal */
+ screen_width = NON_INTERACTIVE_MODE_VIRTUAL_SCREEN_WIDTH;
smart_terminal = false;
return;
}

File Metadata

Mime Type
text/plain
Expires
Tue, May 19, 3:59 AM (9 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33290488
Default Alt Text
D16455.id.diff (544 B)

Event Timeline