pork (0.99.8.1-2) 001_fix-msg-types_upstream.dpatch

Summary

 src/pork_screen_io.c |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_fix-msg-types_upstream.dpatch by Benjamin Seidenberg <astronut@dlgeek.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Upstream patch to fix messsage types

@DPATCH@
diff -urNad pork-0.99.8.1~/src/pork_screen_io.c pork-0.99.8.1/src/pork_screen_io.c
--- pork-0.99.8.1~/src/pork_screen_io.c	2005-05-04 15:38:13.000000000 -0400
+++ pork-0.99.8.1/src/pork_screen_io.c	2006-05-01 20:01:45.000000000 -0400
@@ -251,8 +251,9 @@
 
 	va_start(ap, fmt);
 	__screen_win_msg(win,
-		(ts * MSG_OPT_TIMESTAMP) | (banner * MSG_OPT_BANNER) | (color * MSG_OPT_COLOR),
-		1, fmt, ap);
+					 (ts * MSG_OPT_TIMESTAMP) | (banner * MSG_OPT_BANNER) | 
+					 (color * MSG_OPT_COLOR),
+					 type, fmt, ap);
 	va_end(ap);
 }
 
@@ -282,6 +283,10 @@
 
 	va_start(ap, fmt);
 	if (!screen.quiet)
-		__screen_win_msg(cur_window(), MSG_OPT_BANNER, 1, fmt, ap);
+		__screen_win_msg(cur_window(), 
+						  MSG_OPT_BANNER, 
+						  MSG_TYPE_CMD_OUTPUT, 
+						  fmt, 
+						  ap);
 	va_end(ap);
 }