Page MenuHomeFreeBSD

D16455.1784767557.diff
No OneTemporary

Size
544 B
Referenced Files
None
Subscribers
None

D16455.1784767557.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
Thu, Jul 23, 12:45 AM (7 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29215436
Default Alt Text
D16455.1784767557.diff (544 B)

Event Timeline