input_to

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 40 行

TXT
40
字号
     iiiinnnnppppuuuutttt____ttttoooo((((3333))))            MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))             iiiinnnnppppuuuutttt____ttttoooo((((3333))))     NNNNAAAAMMMMEEEE          input_to() - causes next line of input to be sent to a          specified function     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS          varargs void input_to( string | function fun, int flag, ...          );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          Enable next line of user input to be sent to the local          function `fun' as an argument. The input line will not be          parsed by the driver.          Note that input_to is non-blocking which means that the          object calling input_to does not pause waiting for input.          Instead the object continues to execute any statements          following the input_to.  The specified function `fun' will          not be called until the user input has been collected.          If "input_to()" is called more than once in the same          execution, only the first call has any effect.          If optional argument `flag' is non-zero, the line given by          the player will not be echoed, and is not seen if snooped          (this is useful for collecting passwords).          The function `fun' will be called with the user input as its          first argument (a string). Any additional arguments supplied          to input_to will be passed on to `fun' as arguments          following the user input.     SSSSEEEEEEEE AAAALLLLSSSSOOOO          call_other(3), call_out(3), get_char(3)     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?