3 * Screen handling functions
5 * Copyright (c) 2006 Christoph Pfisterer
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the
20 * * Neither the name of Christoph Pfisterer nor the names of the
21 * contributors may be used to endorse or promote products derived
22 * from this software without specific prior written permission.
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 * Modifications copyright (c) 2012 Roderick W. Smith
39 * Modifications distributed under the terms of the GNU General Public
40 * License (GPL) version 3 (GPLv3), a copy of which must be distributed
41 * with this source code or binaries made from it.
51 #include "../include/refit_call_wrapper.h"
53 #include "../include/egemb_refind_banner.h"
55 // Console defines and variables
59 CHAR16
*BlankLine
= NULL
;
61 static VOID
DrawScreenHeader(IN CHAR16
*Title
);
63 // UGA defines and variables
67 BOOLEAN AllowGraphicsMode
;
69 EG_PIXEL StdBackgroundPixel
= { 0xbf, 0xbf, 0xbf, 0 };
70 EG_PIXEL MenuBackgroundPixel
= { 0xbf, 0xbf, 0xbf, 0 };
71 EG_PIXEL DarkBackgroundPixel
= { 0x0, 0x0, 0x0, 0 };
73 static BOOLEAN GraphicsScreenDirty
;
75 // general defines and variables
77 static BOOLEAN haveError
= FALSE
;
79 static VOID
PrepareBlankLine(VOID
) {
82 MyFreePool(BlankLine
);
83 // make a buffer for a whole text line
84 BlankLine
= AllocatePool((ConWidth
+ 1) * sizeof(CHAR16
));
85 for (i
= 0; i
< ConWidth
; i
++)
91 // Screen initialization and switching
99 if (egHasGraphicsMode()) {
100 egGetScreenSize(&UGAWidth
, &UGAHeight
);
101 AllowGraphicsMode
= TRUE
;
103 AllowGraphicsMode
= FALSE
;
104 egSetTextMode(GlobalConfig
.RequestedTextMode
);
105 egSetGraphicsModeEnabled(FALSE
); // just to be sure we are in text mode
107 GraphicsScreenDirty
= TRUE
;
110 refit_call2_wrapper(ST
->ConOut
->EnableCursor
, ST
->ConOut
, FALSE
);
112 // get size of text console
113 if (refit_call4_wrapper(ST
->ConOut
->QueryMode
, ST
->ConOut
, ST
->ConOut
->Mode
->Mode
, &ConWidth
, &ConHeight
) != EFI_SUCCESS
) {
114 // use default values on error
121 // show the banner if in text mode
122 if (GlobalConfig
.TextOnly
)
123 DrawScreenHeader(L
"Initializing...");
126 // Set the screen resolution and mode (text vs. graphics).
127 VOID
SetupScreen(VOID
)
129 UINTN NewWidth
, NewHeight
;
131 // Convert mode number to horizontal & vertical resolution values
132 if ((GlobalConfig
.RequestedScreenWidth
> 0) && (GlobalConfig
.RequestedScreenHeight
== 0))
133 egGetResFromMode(&(GlobalConfig
.RequestedScreenWidth
), &(GlobalConfig
.RequestedScreenHeight
));
135 // Set the believed-to-be current resolution to the LOWER of the current
136 // believed-to-be resolution and the requested resolution. This is done to
137 // enable setting a lower-than-default resolution.
138 if ((GlobalConfig
.RequestedScreenWidth
> 0) && (GlobalConfig
.RequestedScreenHeight
> 0)) {
139 UGAWidth
= (UGAWidth
< GlobalConfig
.RequestedScreenWidth
) ? UGAWidth
: GlobalConfig
.RequestedScreenWidth
;
140 UGAHeight
= (UGAHeight
< GlobalConfig
.RequestedScreenHeight
) ? UGAHeight
: GlobalConfig
.RequestedScreenHeight
;
143 // Set text mode. If this requires increasing the size of the graphics mode, do so.
144 if (egSetTextMode(GlobalConfig
.RequestedTextMode
)) {
145 egGetScreenSize(&NewWidth
, &NewHeight
);
146 if ((NewWidth
> UGAWidth
) || (NewHeight
> UGAHeight
)) {
148 UGAHeight
= NewHeight
;
150 if ((UGAWidth
> GlobalConfig
.RequestedScreenWidth
) || (UGAHeight
> GlobalConfig
.RequestedScreenHeight
)) {
151 // Requested text mode forces us to use a bigger graphics mode
152 GlobalConfig
.RequestedScreenWidth
= UGAWidth
;
153 GlobalConfig
.RequestedScreenHeight
= UGAHeight
;
157 if (GlobalConfig
.RequestedScreenWidth
> 0) {
158 egSetScreenSize(&(GlobalConfig
.RequestedScreenWidth
), &(GlobalConfig
.RequestedScreenHeight
));
159 egGetScreenSize(&UGAWidth
, &UGAHeight
);
160 } // if user requested a particular screen resolution
162 if (GlobalConfig
.TextOnly
) {
163 // switch to text mode if requested
164 AllowGraphicsMode
= FALSE
;
167 } else if (AllowGraphicsMode
) {
168 // clear screen and show banner
169 // (now we know we'll stay in graphics mode)
171 BltClearScreen(TRUE
);
173 } // VOID SetupScreen()
175 VOID
SwitchToText(IN BOOLEAN CursorEnabled
)
177 egSetGraphicsModeEnabled(FALSE
);
178 refit_call2_wrapper(ST
->ConOut
->EnableCursor
, ST
->ConOut
, CursorEnabled
);
179 // get size of text console
180 if (refit_call4_wrapper(ST
->ConOut
->QueryMode
, ST
->ConOut
, ST
->ConOut
->Mode
->Mode
, &ConWidth
, &ConHeight
) != EFI_SUCCESS
) {
181 // use default values on error
188 VOID
SwitchToGraphics(VOID
)
190 if (AllowGraphicsMode
&& !egIsGraphicsModeEnabled()) {
191 egSetGraphicsModeEnabled(TRUE
);
192 GraphicsScreenDirty
= TRUE
;
197 // Screen control for running tools
200 VOID
BeginTextScreen(IN CHAR16
*Title
)
202 DrawScreenHeader(Title
);
209 VOID
FinishTextScreen(IN BOOLEAN WaitAlways
)
211 if (haveError
|| WaitAlways
) {
220 VOID
BeginExternalScreen(IN BOOLEAN UseGraphicsMode
, IN CHAR16
*Title
)
222 if (!AllowGraphicsMode
)
223 UseGraphicsMode
= FALSE
;
225 if (UseGraphicsMode
) {
227 BltClearScreen(FALSE
);
229 egClearScreen(&DarkBackgroundPixel
);
230 DrawScreenHeader(Title
);
238 VOID
FinishExternalScreen(VOID
)
240 // make sure we clean up later
241 GraphicsScreenDirty
= TRUE
;
248 // Reset the screen resolution, in case external program changed it....
255 VOID
TerminateScreen(VOID
)
258 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BASIC
);
259 refit_call1_wrapper(ST
->ConOut
->ClearScreen
, ST
->ConOut
);
262 refit_call2_wrapper(ST
->ConOut
->EnableCursor
, ST
->ConOut
, TRUE
);
265 static VOID
DrawScreenHeader(IN CHAR16
*Title
)
269 // clear to black background
270 egClearScreen(&DarkBackgroundPixel
); // first clear in graphics mode
271 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BASIC
);
272 refit_call1_wrapper(ST
->ConOut
->ClearScreen
, ST
->ConOut
); // then clear in text mode
274 // paint header background
275 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BANNER
);
276 for (y
= 0; y
< 3; y
++) {
277 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, 0, y
);
282 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, 3, 1);
283 Print(L
"rEFInd - %s", Title
);
286 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BASIC
);
287 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, 0, 4);
294 BOOLEAN
ReadAllKeyStrokes(VOID
)
296 BOOLEAN GotKeyStrokes
;
300 GotKeyStrokes
= FALSE
;
302 Status
= refit_call2_wrapper(ST
->ConIn
->ReadKeyStroke
, ST
->ConIn
, &key
);
303 if (Status
== EFI_SUCCESS
) {
304 GotKeyStrokes
= TRUE
;
309 return GotKeyStrokes
;
312 VOID
PauseForKey(VOID
)
316 Print(L
"\n* Hit any key to continue *");
318 if (ReadAllKeyStrokes()) { // remove buffered key strokes
319 refit_call1_wrapper(BS
->Stall
, 5000000); // 5 seconds delay
320 ReadAllKeyStrokes(); // empty the buffer again
323 refit_call3_wrapper(BS
->WaitForEvent
, 1, &ST
->ConIn
->WaitForKey
, &index
);
324 ReadAllKeyStrokes(); // empty the buffer to protect the menu
330 VOID
DebugPause(VOID
)
332 // show console and wait for key
341 VOID
EndlessIdleLoop(VOID
)
347 refit_call3_wrapper(BS
->WaitForEvent
, 1, &ST
->ConIn
->WaitForKey
, &index
);
355 #ifdef __MAKEWITH_GNUEFI
356 BOOLEAN
CheckFatalError(IN EFI_STATUS Status
, IN CHAR16
*where
)
358 CHAR16 ErrorName
[64];
360 if (!EFI_ERROR(Status
))
363 StatusToString(ErrorName
, Status
);
364 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_ERROR
);
365 Print(L
"Fatal Error: %s %s\n", ErrorName
, where
);
366 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BASIC
);
369 //BS->Exit(ImageHandle, ExitStatus, ExitDataSize, ExitData);
374 BOOLEAN
CheckError(IN EFI_STATUS Status
, IN CHAR16
*where
)
376 CHAR16 ErrorName
[64];
378 if (!EFI_ERROR(Status
))
381 StatusToString(ErrorName
, Status
);
382 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_ERROR
);
383 Print(L
"Error: %s %s\n", ErrorName
, where
);
384 refit_call2_wrapper(ST
->ConOut
->SetAttribute
, ST
->ConOut
, ATTR_BASIC
);
390 BOOLEAN
CheckFatalError(IN EFI_STATUS Status
, IN CHAR16
*where
)
392 // CHAR16 ErrorName[64];
394 if (!EFI_ERROR(Status
))
397 gST
->ConOut
->SetAttribute (gST
->ConOut
, ATTR_ERROR
);
398 Print(L
"Fatal Error: %r %s\n", Status
, where
);
399 gST
->ConOut
->SetAttribute (gST
->ConOut
, ATTR_BASIC
);
402 //gBS->Exit(ImageHandle, ExitStatus, ExitDataSize, ExitData);
407 BOOLEAN
CheckError(IN EFI_STATUS Status
, IN CHAR16
*where
)
409 if (!EFI_ERROR(Status
))
412 gST
->ConOut
->SetAttribute (gST
->ConOut
, ATTR_ERROR
);
413 Print(L
"Error: %r %s\n", Status
, where
);
414 gST
->ConOut
->SetAttribute (gST
->ConOut
, ATTR_BASIC
);
422 // Graphics functions
425 VOID
SwitchToGraphicsAndClear(VOID
)
428 if (GraphicsScreenDirty
)
429 BltClearScreen(TRUE
);
432 VOID
BltClearScreen(IN BOOLEAN ShowBanner
)
434 static EG_IMAGE
*Banner
= NULL
, *CroppedBanner
;
435 INTN BannerPosX
, BannerPosY
;
437 if (ShowBanner
&& !(GlobalConfig
.HideUIFlags
& HIDEUI_FLAG_BANNER
)) {
438 // load banner on first call
439 if (Banner
== NULL
) {
440 if (GlobalConfig
.BannerFileName
== NULL
) {
441 Banner
= egPrepareEmbeddedImage(&egemb_refind_banner
, FALSE
);
443 Banner
= egLoadImage(SelfDir
, GlobalConfig
.BannerFileName
, FALSE
);
444 if (Banner
&& ((Banner
->Width
> UGAWidth
) || (Banner
->Height
> UGAHeight
))) {
445 CroppedBanner
= egCropImage(Banner
, 0, 0, (Banner
->Width
> UGAWidth
) ? UGAWidth
: Banner
->Width
,
446 (Banner
->Height
> UGAHeight
) ? UGAHeight
: Banner
->Height
);
448 Banner
= CroppedBanner
;
449 } // if image too big
450 if (Banner
== NULL
) {
451 Banner
= egPrepareEmbeddedImage(&egemb_refind_banner
, FALSE
);
452 } // if unusable image
455 MenuBackgroundPixel
= Banner
->PixelData
[0];
458 // clear and draw banner
459 egClearScreen(&MenuBackgroundPixel
);
460 if (Banner
!= NULL
) {
461 BannerPosX
= (Banner
->Width
< UGAWidth
) ? ((UGAWidth
- Banner
->Width
) / 2) : 0;
462 BannerPosY
= (INTN
) (ComputeRow0PosY() / 2) - (INTN
) Banner
->Height
;
465 GlobalConfig
.BannerBottomEdge
= BannerPosY
+ Banner
->Height
;
466 BltImage(Banner
, (UINTN
) BannerPosX
, (UINTN
) BannerPosY
);
470 // clear to menu background color
471 egClearScreen(&MenuBackgroundPixel
);
474 GraphicsScreenDirty
= FALSE
;
475 egFreeImage(GlobalConfig
.ScreenBackground
);
476 GlobalConfig
.ScreenBackground
= egCopyScreen();
477 } /* VOID BltClearScreen() */
479 VOID
BltImage(IN EG_IMAGE
*Image
, IN UINTN XPos
, IN UINTN YPos
)
481 egDrawImage(Image
, XPos
, YPos
);
482 GraphicsScreenDirty
= TRUE
;
485 VOID
BltImageAlpha(IN EG_IMAGE
*Image
, IN UINTN XPos
, IN UINTN YPos
, IN EG_PIXEL
*BackgroundPixel
)
489 // compose on background
490 CompImage
= egCreateFilledImage(Image
->Width
, Image
->Height
, FALSE
, BackgroundPixel
);
491 egComposeImage(CompImage
, Image
, 0, 0);
493 // blit to screen and clean up
494 egDrawImage(CompImage
, XPos
, YPos
);
495 egFreeImage(CompImage
);
496 GraphicsScreenDirty
= TRUE
;
499 // VOID BltImageComposite(IN EG_IMAGE *BaseImage, IN EG_IMAGE *TopImage, IN UINTN XPos, IN UINTN YPos)
501 // UINTN TotalWidth, TotalHeight, CompWidth, CompHeight, OffsetX, OffsetY;
502 // EG_IMAGE *CompImage;
504 // // initialize buffer with base image
505 // CompImage = egCopyImage(BaseImage);
506 // TotalWidth = BaseImage->Width;
507 // TotalHeight = BaseImage->Height;
509 // // place the top image
510 // CompWidth = TopImage->Width;
511 // if (CompWidth > TotalWidth)
512 // CompWidth = TotalWidth;
513 // OffsetX = (TotalWidth - CompWidth) >> 1;
514 // CompHeight = TopImage->Height;
515 // if (CompHeight > TotalHeight)
516 // CompHeight = TotalHeight;
517 // OffsetY = (TotalHeight - CompHeight) >> 1;
518 // egComposeImage(CompImage, TopImage, OffsetX, OffsetY);
520 // // blit to screen and clean up
521 // egDrawImage(CompImage, XPos, YPos);
522 // egFreeImage(CompImage);
523 // GraphicsScreenDirty = TRUE;
526 VOID
BltImageCompositeBadge(IN EG_IMAGE
*BaseImage
, IN EG_IMAGE
*TopImage
, IN EG_IMAGE
*BadgeImage
, IN UINTN XPos
, IN UINTN YPos
)
528 UINTN TotalWidth
= 0, TotalHeight
= 0, CompWidth
= 0, CompHeight
= 0, OffsetX
= 0, OffsetY
= 0;
529 EG_IMAGE
*CompImage
= NULL
;
531 // initialize buffer with base image
532 if (BaseImage
!= NULL
) {
533 CompImage
= egCopyImage(BaseImage
);
534 TotalWidth
= BaseImage
->Width
;
535 TotalHeight
= BaseImage
->Height
;
538 // place the top image
539 if ((TopImage
!= NULL
) && (CompImage
!= NULL
)) {
540 CompWidth
= TopImage
->Width
;
541 if (CompWidth
> TotalWidth
)
542 CompWidth
= TotalWidth
;
543 OffsetX
= (TotalWidth
- CompWidth
) >> 1;
544 CompHeight
= TopImage
->Height
;
545 if (CompHeight
> TotalHeight
)
546 CompHeight
= TotalHeight
;
547 OffsetY
= (TotalHeight
- CompHeight
) >> 1;
548 egComposeImage(CompImage
, TopImage
, OffsetX
, OffsetY
);
551 // place the badge image
552 if (BadgeImage
!= NULL
&& CompImage
!= NULL
&& (BadgeImage
->Width
+ 8) < CompWidth
&& (BadgeImage
->Height
+ 8) < CompHeight
) {
553 OffsetX
+= CompWidth
- 8 - BadgeImage
->Width
;
554 OffsetY
+= CompHeight
- 8 - BadgeImage
->Height
;
555 egComposeImage(CompImage
, BadgeImage
, OffsetX
, OffsetY
);
558 // blit to screen and clean up
559 if (CompImage
->HasAlpha
)
560 egDrawImageWithTransparency(CompImage
, NULL
, XPos
, YPos
, CompImage
->Width
, CompImage
->Height
);
562 egDrawImage(CompImage
, XPos
, YPos
);
563 egFreeImage(CompImage
);
564 GraphicsScreenDirty
= TRUE
;
567 // Line-editing functions borrowed from gummiboot (cursor_left(), cursor_right(), & line_edit()).
568 // gummiboot is copyright (c) 2012 by Kay Sievers <kay.sievers@vrfy.org> and Harald Hoyer
569 // <harald@redhat.com> and is licensed under the LGPL 2.1.
571 static void cursor_left(UINTN
*cursor
, UINTN
*first
)
575 else if ((*first
) > 0)
579 static void cursor_right(UINTN
*cursor
, UINTN
*first
, UINTN x_max
, UINTN len
)
581 if ((*cursor
)+2 < x_max
)
583 else if ((*first
) + (*cursor
) < len
)
587 BOOLEAN
line_edit(CHAR16
*line_in
, CHAR16
**line_out
, UINTN x_max
) {
598 DrawScreenHeader(L
"Line Editor");
599 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, (ConWidth
- 71) / 2, ConHeight
- 1);
600 refit_call2_wrapper(ST
->ConOut
->OutputString
, ST
->ConOut
,
601 L
"Use cursor keys to edit, Esc to exit, Enter to boot with edited options");
605 size
= StrLen(line_in
) + 1024;
606 line
= AllocatePool(size
* sizeof(CHAR16
));
607 StrCpy(line
, line_in
);
609 print
= AllocatePool(x_max
* sizeof(CHAR16
));
611 refit_call2_wrapper(ST
->ConOut
->EnableCursor
, ST
->ConOut
, TRUE
);
626 CopyMem(print
, line
+ first
, i
* sizeof(CHAR16
));
630 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, 0, y_pos
);
631 refit_call2_wrapper(ST
->ConOut
->OutputString
, ST
->ConOut
, print
);
632 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, cursor
, y_pos
);
634 refit_call3_wrapper(BS
->WaitForEvent
, 1, &ST
->ConIn
->WaitForKey
, &index
);
635 err
= refit_call2_wrapper(ST
->ConIn
->ReadKeyStroke
, ST
->ConIn
, &key
);
639 switch (key
.ScanCode
) {
649 if (cursor
>= x_max
) {
651 first
= len
- (x_max
-2);
655 while((first
+ cursor
) && line
[first
+ cursor
] == ' ')
656 cursor_left(&cursor
, &first
);
657 while((first
+ cursor
) && line
[first
+ cursor
] != ' ')
658 cursor_left(&cursor
, &first
);
659 while((first
+ cursor
) && line
[first
+ cursor
] == ' ')
660 cursor_left(&cursor
, &first
);
661 if (first
+ cursor
!= len
&& first
+ cursor
)
662 cursor_right(&cursor
, &first
, x_max
, len
);
663 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, cursor
, y_pos
);
666 while(line
[first
+ cursor
] && line
[first
+ cursor
] == ' ')
667 cursor_right(&cursor
, &first
, x_max
, len
);
668 while(line
[first
+ cursor
] && line
[first
+ cursor
] != ' ')
669 cursor_right(&cursor
, &first
, x_max
, len
);
670 while(line
[first
+ cursor
] && line
[first
+ cursor
] == ' ')
671 cursor_right(&cursor
, &first
, x_max
, len
);
672 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, cursor
, y_pos
);
675 if (first
+ cursor
== len
)
677 cursor_right(&cursor
, &first
, x_max
, len
);
678 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, cursor
, y_pos
);
681 cursor_left(&cursor
, &first
);
682 refit_call3_wrapper(ST
->ConOut
->SetCursorPosition
, ST
->ConOut
, cursor
, y_pos
);
687 if (first
+ cursor
== len
)
689 for (i
= first
+ cursor
; i
< len
; i
++)
696 switch (key
.UnicodeChar
) {
698 case CHAR_CARRIAGE_RETURN
:
707 if (first
== 0 && cursor
== 0)
709 for (i
= first
+ cursor
-1; i
< len
; i
++)
714 if (cursor
> 0 || first
== 0)
716 /* show full line if it fits */
722 /* jump left to see what we delete */
733 case 0x80 ... 0xffff:
736 for (i
= len
; i
> first
+ cursor
; i
--)
738 line
[first
+ cursor
] = key
.UnicodeChar
;
741 if (cursor
+2 < x_max
)
743 else if (first
+ cursor
< len
)
749 refit_call2_wrapper(ST
->ConOut
->EnableCursor
, ST
->ConOut
, FALSE
);
753 } /* BOOLEAN line_edit() */