Mail Archives: cygwin/2001/05/17/15:58:18
--wtMHIBnS/fk6hAzt
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Greetings all,
I am currently running the latest Cygwin 1.3.1 (installed from the net via
setup.exe) on a Windows 2000 SP1 PC and have noticed two weird problems with
the rxvt that comes with Cygwin.
- If rxvt is started maximized, say with "cmd /c start /max rxvt", the terminal
size is not correct until I do a restore and then a maximize again from the
system menu. (I have set TERM=rxvt-cygwin-native).
- I use a white foreground on black background. So when the previous problem
occurs, the portion of the rxvt window that is not part of the smaller
terminal size is white (the foreground color) instæad of black (the
background color).
So, I downloaded the source for rxvt 2.7.2 and examined it awhile and came up
with the attached patch to fix the problem. Would it be possible to incorporate
this patch into the next release of the Cygwin rxvt?
Thanks,
--
Agostino Deligia
Software Developer
Alis Technologies Inc.
adeligia AT alis DOT com
--wtMHIBnS/fk6hAzt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rxvt-2.7.2-bg-and-resize.patch"
--- rxvt-2.7.2-orig/src/main.c Sat Dec 18 02:41:47 1999
+++ rxvt-2.7.2/src/main.c Wed Mar 28 11:56:16 2001
@@ -341,7 +341,11 @@
*/
#ifdef PREFER_24BIT
+#if defined(__CYGWIN__)
+ attributes.background_pixel = PixColors[Color_bg];
+#else /* !defined(__CYGWIN__) */
attributes.background_pixel = PixColors[Color_fg];
+#endif /* defined(__CYGWIN__) */
attributes.border_pixel = PixColors[Color_fg];
attributes.colormap = Xcmap;
TermWin.parent[0] = XCreateWindow(Xdisplay, Xroot,
@@ -1446,6 +1450,10 @@
init_env();
init_command(cmd_argv);
+
+#if defined(__CYGWIN__)
+ tt_resize();
+#endif /* defined(__CYGWIN__) */
main_loop(); /* main processing loop */
return EXIT_SUCCESS;
--wtMHIBnS/fk6hAzt
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
--wtMHIBnS/fk6hAzt--
- Raw text -