ReadLine
- 网络行编辑;编辑功能
-
You first step through the file line by line using the readline method .
首先,用readline方法在文件行中移动。
-
These factors make it impossible to implement even a simple readline method without polling .
这些因素使得没有轮询就不可能实现甚至是简单的readline方法。
-
All servlet containers must provide a readline method on their input streams .
所有的servlet容器必须在它们的输入流上提供readline方法。
-
The bash shell uses the readline library to manage command editing and history .
bashshell使用readline历史来管理命令编辑和历史。
-
When you reach the end of the file , the readline method returns an empty string .
当到达文件末尾时,readline方法返回一个空的string。
-
The readline method , however , reads the specified number of characters and continues reading until the end of that line .
但是readline方法在读入指定数量的字符后,还会继续读取,直到行尾。
-
By using this knowledge , you can pass in a parameter to the read method or the readline method to control how many characters are read .
通过使用这个知识,可以向read或readline方法传递一个参数,控制读取的字符数。
-
Gnuplot can be recompiled to use the GNU readline library to move around on the input prompt , but the defaults function similarly .
可以对gnuplot进行重新编译以便使用GNUreadline库在输入提示符上来回移动,但类似于默认函数。
-
Not only that , but we substituted certain dependencies like GNU Readline with a pure-ruby version called rb-readline .
并不仅仅是这些,我们将会替代一些依赖程序,例如使用纯净的ruby版readline(叫做rb)来替代GNU的Readline。
-
The difference between . readline () and . readlines () is that the latter , like . read (), reads an entire file at once .
readline()和.readlines()之间的差异是后者一次读取整个文件,象.read()一样。
-
More extensive commands , such as going backward and forward by words , are controlled by the Readline library that supports both vi and emacs bindings by default .
更广泛的命令(例如按单词向前和向后移动)可以通过Readline库来控制,该库在缺省情况下同时支持vi和emacs绑定。
-
Additional functions as well as how to customize these options using a readline init file ( usually inputrc in your home directory ) can be found in the man pages .
其余功能以及如何使用readlineinit文件(通常为主目录中的inputrc)定制选项等内容可以在手册页中找到。
-
I should also mention that the Term : : ReadLine : : Gnu CPAN module works better for me than the default module , Term : : ReadLine : : Perl , in Linux inside xterm and Eterm terminal emulators .
我还应提一下,在Linux内部的xterm和Eterm终端模拟器中,Term::ReadLine::Gnu模块比默认模块Term::ReadLine::Perl能更好地工作。