| 1 | #Region "Microsoft.VisualBasic::2aa3a0e8fd3451b671d76bef6a1c3bbc, Microsoft.VisualBasic.Core\ApplicationServices\Terminal\STDIO__\I_ConsoleDeviceHandle.vb" |
| 2 | |
| 3 | ' Author: |
| 4 | ' |
| 5 | ' asuka (amethyst.asuka@gcmodeller.org) |
| 6 | ' xie (genetics@smrucc.org) |
| 7 | ' xieguigang (xie.guigang@live.com) |
| 8 | ' |
| 9 | ' Copyright (c) 2018 GPL3 Licensed |
| 10 | ' |
| 11 | ' |
| 12 | ' GNU GENERAL PUBLIC LICENSE (GPL3) |
| 13 | ' |
| 14 | ' |
| 15 | ' This program is free software: you can redistribute it and/or modify |
| 16 | ' it under the terms of the GNU General Public License as published by |
| 17 | ' the Free Software Foundation, either version 3 of the License, or |
| 18 | ' (at your option) any later version. |
| 19 | ' |
| 20 | ' This program is distributed in the hope that it will be useful, |
| 21 | ' but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | ' GNU General Public License for more details. |
| 24 | ' |
| 25 | ' You should have received a copy of the GNU General Public License |
| 26 | ' along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 27 | |
| 28 | |
| 29 | |
| 30 | ' /********************************************************************************/ |
| 31 | |
| 32 | ' Summaries: |
| 33 | |
| 34 | ' Interface I_ConsoleDeviceHandle |
| 35 | ' |
| 36 | ' Function: Read, ReadLine |
| 37 | ' |
| 38 | ' Sub: (+2 Overloads) WriteLine |
| 39 | ' |
| 40 | ' |
| 41 | ' /********************************************************************************/ |
| 42 | |
| 43 | #End Region |
| 44 | |
| 45 | Namespace Terminal.STDIO__ |
| 46 | |
| 47 | ''' <summary> |
| 48 | ''' Represents the standard input, output, and error streams for console applications.(表示一个输入输出流控制台界面接口) |
| 49 | ''' </summary> |
| 50 | ''' <remarks></remarks> |
| 51 | Public Interface I_ConsoleDeviceHandle |
| 52 | |
| 53 | ''' <summary> |
| 54 | ''' Writes the specified string value, followed by the current line terminator, to the standard output stream. |
| 55 | ''' (将指定的字符串值(后跟当前行终止符)写入输出流。) |
| 56 | ''' </summary> |
| 57 | ''' <param name="s"></param> |
| 58 | ''' <remarks></remarks> |
| 59 | Sub WriteLine(Optional s As String = "") |
| 60 | ''' <summary> |
| 61 | ''' Writes the text representation of the specified array of objects, followed by the current line terminator, to the standard output stream using the specified format information. |
| 62 | ''' (将指定的字符串值(后跟当前行终止符)写入输出流。) |
| 63 | ''' </summary> |
| 64 | ''' <param name="s"></param> |
| 65 | ''' <param name="args"></param> |
| 66 | ''' <remarks></remarks> |
| 67 | Sub WriteLine(s As String, ParamArray args As String()) |
| 68 | ''' <summary> |
| 69 | ''' Reads the next line of characters from the standard input stream.(从输入流读取下一行字符) |
| 70 | ''' </summary> |
| 71 | ''' <returns>The next line of characters from the input stream, or null if no more lines are available.</returns> |
| 72 | ''' <remarks></remarks> |
| 73 | Function ReadLine() As String |
| 74 | ''' <summary> |
| 75 | ''' Reads the next character from the standard input stream.(从输入流读取下一个字符) |
| 76 | ''' </summary> |
| 77 | ''' <returns>The next character from the input stream, or negative one (-1) if there are currently no more characters to be read.</returns> |
| 78 | ''' <remarks></remarks> |
| 79 | Function Read() As Integer |
| 80 | End Interface |
| 81 | End Namespace |