-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmswdrv.c.bak
676 lines (587 loc) · 20.6 KB
/
mswdrv.c.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
/* The routines in this file provide drivers for display and input under
the Microsoft Windows environment on an IBM-PC or compatible
computer.
Must be compiled with Borland C++ 2.0 or MSC 6.0 or later versions.
It should not be compiled if the WINDOW_MSWIN symbol is not set */
#define termdef 1 /* don't define term external */
#include "estruct.h"
#include "elang.h"
#include <stdio.h>
#include <time.h>
#include "eproto.h"
#include "edef.h"
#include "mswin.h"
#define NPAUSE 1000 /* pause for fence-showing, 1 second */
#define MARGIN 8 /* size of minimal margin and */
#define SCRSIZ 20 /* scroll size for extended lines */
/* terminal interface table entries */
static int PASCAL mswnop();
static int PASCAL mswopen();
static int PASCAL mswgetc();
static int PASCAL mswputc();
static int PASCAL mswflush();
static int PASCAL mswbeep();
static int PASCAL mswmove();
static int PASCAL msweeol();
static int PASCAL msweeop();
static int PASCAL mswbeep();
static int PASCAL mswrev();
static int PASCAL mswrez();
#if COLOR
static int PASCAL mswsetfor();
static int PASCAL mswsetback();
#endif
static int PASCAL mswsleep();
static int PASCAL mswnewscr();
static int PASCAL mswdelscr();
static int PASCAL mswselscr();
static int PASCAL mswsizscr();
static int PASCAL mswtopscr();
/* Standard terminal interface dispatch table.
*/
NOSHARE TERM term = {
128,
128,
HUGE,
HUGE,
0,
0,
MARGIN,
SCRSIZ,
NPAUSE,
mswopen, /* t_open: Open terminal at the start */
mswnop, /* t_close: Close terminal at end */
mswnop, /* t_kopen: Open keyboard */
mswnop, /* t_kclose: close keyboard */
mswgetc, /* t_getchar: Get character from keyboard */
mswputc, /* t_putchar: Put character to display */
mswflush, /* t_flush: Flush output buffers */
mswmove, /* t_move: Move the cursor, origin 0 */
msweeol, /* t_eeol: Erase to end of line */
msweeop, /* t_eeop: Erase to end of page */
mswnop, /* t_clrdesk: Clear the page totally */
mswbeep, /* t_beep: Sound beep */
mswrev, /* t_rev: set reverse video state */
mswrez, /* t_rez: change screen resolution */
#if COLOR
mswsetfor, /* t_setfor: set forground color */
mswsetback, /* t_setback: set background color */
#endif
mswsleep, /* t_sleep: wait a while */
mswnewscr, /* t_newscr: create new "screen" display */
mswdelscr, /* t_delscr: destroy "screen" display */
mswselscr, /* t_selscr: select "screen" display for IO */
mswsizscr, /* t_sizscr: resize "screen" display */
mswtopscr /* t_topscr: bring "screen" to top */
};
#define MAXMLHIST 8 /* must be a power of 2 */
#define MLHISTMASK 0x7 /* corresponding bit mask */
static char *MLHistory[MAXMLHIST] = {NULL};
/* circular history of the last few message line entries */
static int MLHistOld = 0; /* index of the oldest message */
static int MLHistNew = 0; /* index of the first empty slot */
static HWND hIOWnd; /* current window where I/Os take place */
static int UpdateRow; /* Row being updated (-1 for no update) */
static struct {
int leftmost;
int rightmost; /* -1 indicates the range is empty */
} UpdateCol; /* Columns to invalidate on UpdateRow */
static SCREEN *IOScr; /* Screen affected by the I/Os */
#if COLOR
static int ForgColor; /* current selection of foreground and */
static int BackColor; /* background colors */
#endif
/* PushMLHist: store the last message line contents in the history */
/* ========== */
static void PASCAL PushMLHist (void)
{
char *ml;
int i, e;
for (e = MLSIZE - 1; e >= 0; e--) if (MLBuf[e] != ' ') break;
/* e = index of the last non-space char */
if (e < 0) return;
if ((ml = MLHistory[MLHistNew] = room (e + 2)) != NULL) {
for (i = 0; i <= e; i++) *ml++ = MLBuf[i];
*ml = '\0'; /* terminate the string */
MLHistNew = (MLHistNew + 1) & MLHISTMASK;
if (MLHistOld == MLHistNew) {
/* the history is full. This old entry needs to be discarded */
free (MLHistory[MLHistOld]);
MLHistOld = (MLHistOld + 1) & MLHISTMASK;
}
}
} /* PushMLHist */
/* MLHistDlgProc: dialog proc for the Message Line History */
/* ============= */
int EXPORT FAR PASCAL MLHistDlgProc (HWND hDlg, UINT wMsg,
UINT wParam, LONG lParam)
{
switch (wMsg) {
case WM_INITDIALOG:
{
char s[50];
strcpy (s, PROGNAME);
strcat (s, TEXT330);
SetWindowText (hDlg, s);
}
/*-fill the list box */
while (MLHistOld != MLHistNew) {
SendDlgItemMessage (hDlg, ID_HIST, LB_ADDSTRING, 0,
(DWORD)MLHistory[MLHistOld]);
free (MLHistory[MLHistOld]);
MLHistOld = (MLHistOld + 1) & MLHISTMASK;
}
/*-scroll the last message into view */
{
int i;
i = SendDlgItemMessage (hDlg, ID_HIST, LB_GETCOUNT, 0, 0L);
SendDlgItemMessage (hDlg, ID_HIST, LB_SETCURSEL, i - 1, 0L);
SendDlgItemMessage (hDlg, ID_HIST, LB_SETCURSEL, -1, 0L);
}
return TRUE;
case WM_COMMAND:
if (NOTIFICATION_CODE != BN_CLICKED) break;
if (LOWORD(wParam) == 1) {
EndDialog (hDlg, 0);
return TRUE;
}
break;
}
return FALSE;
} /* MLHistDlgProc */
/* mlhistory: displays the message line history box */
/* ========= */
/* This function is needed because the message line only shows the last
message. If a macro fails, it usually generates a slew of errors
(each beginning by a \n). Eventually, calling this function in the
core editor loop will pop up a dialog box showing up to MAXMLHIST-1
past messages */
PASCAL mlhistory (void)
{
FARPROC ProcInstance;
PushMLHist ();
mlferase ();
ProcInstance = MakeProcInstance ((FARPROC)MLHistDlgProc,
hEmacsInstance);
DialogBox (hEmacsInstance, "MLHIST", hFrameWnd, ProcInstance);
FreeProcInstance (ProcInstance);
} /* mlhistory */
static void PASCAL ChangeUpdateRow (int newrow)
/* Set UpdateRow to newrow, invalidating the changed cells in the
previous update row */
{
if ((UpdateCol.rightmost >= 0) && (UpdateRow >= 0)) {
InvalidateCells (hIOWnd, UpdateCol.leftmost, UpdateRow,
UpdateCol.rightmost, UpdateRow);
}
UpdateRow = newrow;
} /* ChangeUpdateRow */
/*****************************************/
/* mswopen: initialize windows interface */
/* ======= */
static int PASCAL mswopen ()
{
static BOOL FirstTime = TRUE;
if (FirstTime) {
int x;
revexist = TRUE;
eolexist = TRUE;
strcpy (sres, "MSWIN"); /* $SRES emacs variable */
strcpy(os, "MSWIN"); /* $OS emacs variable */
MLBuf = (char*)room(MLSIZE);
for (x = 0; x < MLSIZE;) MLBuf[x++] = ' ';
FirstTime = FALSE;
}
UpdateRow = -1;
UpdateCol.rightmost = -1;
UpdateCol.leftmost = HUGE; /* empty range */
return 0;
} /* mswopen */
/***************************************************/
/* mswgetc: get character from keyboard (or mouse) */
/* ======= */
static int PASCAL mswgetc ()
{
return GetInput ();
} /* mswgetc */
/*************************************/
/* mswputc: put character to display */
/* ======= */
static int PASCAL mswputc (c)
int c; /* character to write (or 0 for dummy write) */
{
if (UpdateRow != CurrentRow) {
ChangeUpdateRow (CurrentRow);
UpdateCol.rightmost = -1;
UpdateCol.leftmost = HUGE; /* empty range */
}
/*-set the colors and reverse status in the display buffer */
if (hIOWnd != hFrameWnd) { /* not supported on message line */
register VIDEO *vp;
vp = IOScr->s_physical[UpdateRow];
vp->v_fcolor = ForgColor;
vp->v_bcolor = BackColor;
}
/*-update the cursor's position and the UpdateCol range. Update the
message line buffer if that's where the fun is */
if (c != 0) {
if (CurrentCol < UpdateCol.leftmost) UpdateCol.leftmost = CurrentCol;
if (CurrentCol > UpdateCol.rightmost) UpdateCol.rightmost = CurrentCol;
if (hIOWnd == hFrameWnd) { /* message line */
if (c == '\b') {
if (CurrentCol > 0) MLBuf[--CurrentCol] = ' ';
}
else {
if (c == '\n') PushMLHist();
else {
MLBuf[CurrentCol] = c;
if (CurrentCol < MLSIZE - 1) ++CurrentCol;
}
}
}
else ++CurrentCol;
}
return 0;
} /* mswputc */
/**************************************************/
/* mswflush: update display from output buffer */
/* ======== */
static int PASCAL mswflush ()
{
ChangeUpdateRow (-1);
if (!InternalRequest && (hIOWnd == hFrameWnd)) UpdateWindow (hIOWnd);
/* note: we do not update screens in real time */
MoveEmacsCaret (hIOWnd, CurrentCol, CurrentRow);
/* some caret movement is directly handled by the driver (see
mswputc) */
return 0;
} /* mswflush */
/****************************/
/* mswmove: move the cursor */
/* ======= */
static int PASCAL mswmove (int newrow, int newcol)
{
/*-perform IO windows switching depending on the addressed row: if
beyond the IO screen, the message line is addressed*/
if (!IOScr || (newrow >= IOScr->s_nrow)) {
if (hIOWnd != hFrameWnd) {
ChangeUpdateRow (-1);
hIOWnd = hFrameWnd;
}
CurrentRow = 0;
}
else {
if (hIOWnd != IOScr->s_drvhandle) {
ChangeUpdateRow (-1);
hIOWnd = IOScr->s_drvhandle;
}
CurrentRow = newrow;
}
CurrentCol = newcol;
/*-update the caret */
MoveEmacsCaret (hIOWnd, CurrentCol, CurrentRow);
return 0;
} /* mswmove */
/*********************************/
/* msweeol: erase to end of line */
/* ======= */
static int PASCAL msweeol ()
{
mswputc (0); /* ensure change of row is properly handled */
UpdateCol.leftmost = min(UpdateCol.leftmost,CurrentCol);
if (hIOWnd == hFrameWnd) { /* message line */
int x;
for (x = CurrentCol; x < MLSIZE;) MLBuf[x++] = ' ';
UpdateCol.rightmost = MLSIZE - 1;
}
else {
UpdateCol.rightmost = IOScr->s_ncol;
}
mswflush ();
return 0;
} /* msweeol */
/*********************************/
/* msweeop: erase to end of page */
/* ======= */
static int PASCAL msweeop ()
{
if (hIOWnd == hFrameWnd) { /* message line */
msweeol (); /* only one line here */
return 0;
}
mswputc (0); /* ensure change of row is properly handled */
UpdateCol.leftmost = min(UpdateCol.leftmost,CurrentCol);
InvalidateCells (hIOWnd, UpdateCol.leftmost, UpdateRow,
IOScr->s_ncol, UpdateRow);
if (CurrentRow + 1 < IOScr->s_nrow) {
register int r;
register VIDEO *vp;
/*-propagate the colors and reverse status */
for (r = CurrentRow + 1; r < IOScr->s_nrow; r++) {
vp = IOScr->s_physical[r];
vp->v_fcolor = ForgColor;
vp->v_bcolor = BackColor;
}
/*-flag the area for repaint */
InvalidateCells (hIOWnd, 0, CurrentRow + 1,
IOScr->s_ncol, IOScr->s_nrow);
}
mswflush ();
return 0;
} /* msweeop */
/*************************/
/* mswbeep: sound a beep */
/* ======= */
static int PASCAL mswbeep ()
{
MessageBeep (0);
return 0;
} /* mswbeep */
/************************************/
/* mswrev: set reverse video state */
/* ====== */
static int PASCAL mswrev (state)
int state; /* TRUE = reverse, FALSE = normal */
{
/* nothing to do: the description of reverse video fields is kept
up to date in the physical screen by the display.c code */
return 0;
} /* mswrev */
/************************************/
/* mswrez: change "resolution" */
/* ====== */
static int PASCAL mswrez (res)
char *res;
{
return TRUE; /* $SRES is read-only in MSWIN, but returning an
error may break existing macros */
} /* mswrez */
#if COLOR
/* mswsetfor: set foreground color */
/* ========= */
static int PASCAL mswsetfor (color)
int color;
{
ForgColor = color;
return 0;
} /* mswsetfor */
/* mswsetback: set background color */
/* ========== */
static int PASCAL mswsetback (color)
int color;
{
BackColor = color;
return 0;
} /* mswsetback */
#endif
/* mswsleep: wait a specified time (in ms) in an unobtrusive way */
/* ======== */
static int PASCAL mswsleep (int t)
{
return TakeANap (t);
} /* mswsleep */
/* mswnewscr: create new MDI window for new screen */
/* ========= */
static int PASCAL mswnewscr (SCREEN *sp)
/* called by screen.c after the screen structure has been allocated. The
size of the screen will be determined by the window's size. returns
TRUE if successful. */
{
MDICREATESTRUCT cs;
BOOL Maximized;
#if WINDOW_MSWIN32
Maximized = (GetWindowLong((HWND)SendMessage (hMDIClientWnd,
WM_MDIGETACTIVE,
0, 0L),
GWL_STYLE) & WS_MAXIMIZE);
#else
Maximized = HIWORD(SendMessage (hMDIClientWnd, WM_MDIGETACTIVE, 0, 0L));
#endif
if (Maximized) {
restorescreen (FALSE, 0); /* de-maximize previous one */
}
if (first_screen == NULL) Maximized = TRUE;
cs.szClass = ScreenClassName;
cs.szTitle = sp->s_screen_name;
cs.hOwner = hEmacsInstance;
cs.x = CW_USEDEFAULT;
cs.y = CW_USEDEFAULT;
cs.cx = CW_USEDEFAULT;
cs.cy = CW_USEDEFAULT;
if (Maximized) cs.style = WS_MAXIMIZE;
else cs.style = 0;
cs.style |= WS_HSCROLL | WS_VSCROLL;
cs.lParam = (DWORD)sp;
sp->s_virtual = NULL; /* not NULL will testify of success */
InternalRequest = TRUE;
SendMessage (hMDIClientWnd, WM_MDICREATE, 0, (DWORD)(LPSTR)&cs);
if (sp->s_virtual) {
if (hFrameWnd == GetActiveWindow ()) SetFocus (sp->s_drvhandle);
}
InternalRequest = FALSE;
if (!sp->s_virtual) {
mswdelscr (sp); /* failed, cleanup! */
return FALSE;
}
return TRUE;
} /* mswnewscr */
/* mswdelscr: destroys an MDI window for a disappearing screen */
/* ========= */
static int PASCAL mswdelscr (SCREEN *sp)
/* called by screen.c before the screen structure is deallocated */
{
if (sp->s_drvhandle == hIOWnd) mswflush ();
if (sp == IOScr) mswselscr (first_screen);
/* hopefully, at this time, sp!=first_screen */
SendMessage (hMDIClientWnd, WM_MDIDESTROY, (UINT)sp->s_drvhandle, 0L);
} /* mswdelscr */
/* mswselscr: select a window/screen combination for the next IOs */
/* ========= */
static int PASCAL mswselscr (SCREEN *sp)
{
hIOWnd = sp->s_drvhandle;
IOScr = sp;
} /* mswselscr */
/* mswsizscr: resize an MDI window to fit the associated screen */
/* ========= */
static int PASCAL mswsizscr (SCREEN *sp)
/* called by Emacs when the screen's dimensions have been changed. A resize
through the MS-Windows interface is handled by the ReSize function in
mswdisp.c */
{
HWND hScrWnd;
BOOL Maximized;
int RetryCount = -1; /* prevents infinite loop if frame
window can't be resized properly */
BOOL FrameIconic;
WINDOWPLACEMENT WindowPlacement;
if (InternalRequest) return;
InternalRequest = TRUE;
hScrWnd = sp->s_drvhandle;
{ /*-If this is iconized, we have to restore it first to be
allowed to change its size. If it is the active MDI child and
is maximized, we will actually resize the frame window so, if
the later is maximized, we restore it first. */
#if WINDOW_MSWIN32
HWND hActiveScr;
hActiveScr = (HWND)SendMessage (hMDIClientWnd, WM_MDIGETACTIVE, 0, 0L);
Maximized = (hScrWnd == hActiveScr) &&
(GetWindowLong(hScrWnd, GWL_STYLE) & WS_MAXIMIZE);
#else
DWORD ActiveScr;
ActiveScr = SendMessage (hMDIClientWnd, WM_MDIGETACTIVE, 0, 0L);
Maximized = (hScrWnd == LOWORD(ActiveScr)) && HIWORD(ActiveScr);
#endif
if (IsIconic (hScrWnd)) {
SendMessage (hMDIClientWnd, WM_MDIRESTORE, (UINT)hScrWnd, 0L);
}
if (Maximized && IsZoomed (hFrameWnd)) {
ShowWindow (hFrameWnd, SW_RESTORE);
}
}
FrameIconic = IsIconic (hFrameWnd);
do {/*-Now, proceed with resizing... */
int Delta;
RECT TargetRect, BoundingRect; /* in MDIClient coordinates */
RECT OldClientRect;
POINT ClientSize;
GetClientRect (hScrWnd, &OldClientRect);
MinimumClientSize (hScrWnd, sp->s_ncol, sp->s_nrow,
&ClientSize.x, &ClientSize.y);
if (Maximized) {
if (((OldClientRect.bottom == ClientSize.y)
&& (OldClientRect.right == ClientSize.x))
|| (RetryCount > 0)) break; /* exit the resize loop */
++RetryCount;
BoundingRect.left = BoundingRect.top = 0;
BoundingRect.right = GetSystemMetrics (SM_CXSCREEN);
BoundingRect.bottom = GetSystemMetrics (SM_CYSCREEN);
if (FrameIconic && Win31API) {
GetWindowPlacement (hFrameWnd, &WindowPlacement);
TargetRect = WindowPlacement.rcNormalPosition;
}
else {
GetWindowRect (hFrameWnd, &TargetRect);
}
}
else {
GetClientRect (hMDIClientWnd, &BoundingRect);
GetWindowRect (hScrWnd, &TargetRect);
ScreenToClient (hMDIClientWnd, (LPPOINT)&TargetRect.right);
ScreenToClient (hMDIClientWnd, (LPPOINT)&TargetRect.left);
}
/*-process change of width: we move the right edge. If it would
go off bounds, we move the left edge back to compensate, but
never below 0 */
Delta = ClientSize.x - OldClientRect.right;
if ((TargetRect.right + Delta) > BoundingRect.right) {
TargetRect.left += (BoundingRect.right - TargetRect.right)
- Delta;
TargetRect.right = BoundingRect.right;
if (TargetRect.left < 0) {
TargetRect.right -= TargetRect.left;
TargetRect.left = 0;
}
}
else TargetRect.right += Delta;
/*-process change of height: we move the bottom edge. If it
would go off screen, we move the top edge up to compensate,
but never beyond 0 */
Delta = ClientSize.y - OldClientRect.bottom;
if ((TargetRect.bottom + Delta) > BoundingRect.bottom) {
TargetRect.top += (BoundingRect.bottom - TargetRect.bottom)
- Delta;
TargetRect.bottom = BoundingRect.bottom;
if (TargetRect.top < 0) {
TargetRect.bottom -= TargetRect.top;
TargetRect.top = 0;
}
}
else TargetRect.bottom += Delta;
if (Maximized && FrameIconic && Win31API) {
WindowPlacement.rcNormalPosition = TargetRect;
SetWindowPlacement (hFrameWnd, &WindowPlacement);
}
else {
SetWindowPos (Maximized ? hFrameWnd : hScrWnd, 0,
TargetRect.left, TargetRect.top,
TargetRect.right - TargetRect.left,
TargetRect.bottom - TargetRect.top,
SWP_DRAWFRAME | SWP_NOZORDER);
}
} while (Maximized); /* if Maximized, we loop once in case a
change of menu bar height has prevented
us from getting the expected client size
*/
InternalRequest = FALSE;
} /* mswsizscr */
/* mswtopscr: bring a screen's window to top. */
/* ========= */
static int PASCAL mswtopscr (SCREEN *sp)
/* called by screen.c when selecting a screen for current */
{
if (!InternalRequest) {
InternalRequest = TRUE;
SendMessage (hMDIClientWnd, WM_MDIACTIVATE,
(UINT)sp->s_drvhandle, 0L);
#if WINDOW_MSWIN32
if (GetWindowLong(sp->s_drvhandle, GWL_STYLE) & WS_MAXIMIZE) {
#else
if (HIWORD(SendMessage (hMDIClientWnd, WM_MDIGETACTIVE, 0, 0L))) {
#endif
/* we have a maximized screen. Since we activated it under
InternalRequest, the new size has not yet been processed
by emacs, so we have to fix that */
newwidth (TRUE, DisplayableColumns (sp->s_drvhandle, 0, &EmacsCM));
newsize (TRUE, DisplayableRows (sp->s_drvhandle, 0, &EmacsCM));
}
InternalRequest = FALSE;
}
} /* mswtopscr */
/*************************/
/* mswnop: No Operation */
/* ====== */
static int PASCAL mswnop ()
{
return 0;
}