Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157051984
D16455.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
D16455.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16455: top(1): fixed the empty output problem in non-interactive mode (-n, -b) regressed in r336028
Attached
Detach File
Event Timeline
Log In to Comment