SimpleKernel  0.0.1
ostream.cpp File Reference

输出 More...

#include "ostream.hpp"
Include dependency graph for ostream.cpp:

Go to the source code of this file.

Functions

auto wait_for_input (EFI_INPUT_KEY *_key) -> EFI_STATUS
 

Detailed Description

输出

Author
Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)
Version
1.0
Date
2023-07-15
change log:
DateAuthorDescription
2023-07-15Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)创建文件

Definition in file ostream.cpp.

Function Documentation

◆ wait_for_input()

auto wait_for_input ( EFI_INPUT_KEY *  _key) -> EFI_STATUS

等待输入

Parameters
_key输入的按键
Returns
efi 错误码

Definition at line 19 of file ostream.cpp.

19  {
20  EFI_STATUS status = EFI_SUCCESS;
21  do {
22  status = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, _key);
23  } while (EFI_NOT_READY == status);
24 
25  return status;
26 }