[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH 2.8.4dev.10] size change in OS/2 port
From: |
Ilya Zakharevich |
Subject: |
lynx-dev [PATCH 2.8.4dev.10] size change in OS/2 port |
Date: |
Sat, 21 Oct 2000 18:12:32 -0400 |
User-agent: |
Mutt/1.2i |
This patch allows changing size of lynx term at runtime (!mode 110,30;exit).
I hesitated to send it, but now I think that this is the best choice.
Any other way (like sending SIGWINCH to itself) will break lynx running in
an xterm...
Enjoy,
Ilya
--- ./src/LYUtils.c-ini Thu Sep 21 21:21:58 2000
+++ ./src/LYUtils.c Sun Oct 15 03:47:20 2000
@@ -7520,6 +7520,7 @@ PUBLIC int LYSystem ARGS1(
BOOLEAN sigtstp_saved = FALSE;
#endif
int saved_errno = 0;
+ int scrsize[4];
fflush(stdout);
fflush(stderr);
@@ -7539,6 +7540,8 @@ PUBLIC int LYSystem ARGS1(
Native command-(non)-shell will not tolerate this. */
{
char *space = command, *slash = command;
+
+ _scrsize(scrsize);
while (*space && *space != ' ' && *space != '\t')
space++;
while (slash < space && *slash != '/')
@@ -7640,6 +7643,15 @@ PUBLIC int LYSystem ARGS1(
FREE(command);
#if !defined(UCX) || !defined(VAXC) /* errno not modifiable ?? */
set_errno(saved_errno); /* may have been clobbered */
+#endif
+# ifdef __EMX__ /* Check whether the screen size changed */
+ _scrsize(scrsize+2);
+ if ((scrsize[0] != scrsize[2]) || (scrsize[1] != scrsize[3])) {
+ CTRACE((tfp, "EMX update size...\n"));
+ LYcols = scrsize[2];
+ LYlines = scrsize[3];
+ recent_sizechange = TRUE;
+ }
#endif
return code;
}
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH 2.8.4dev.10] size change in OS/2 port,
Ilya Zakharevich <=