cli_readline.h

来自「一个简单的小型操作系统」· C头文件 代码 · 共 30 行

H
30
字号

/*****************************************************************************
 *
 * Module       : cli_readline.h
 * Descriptions : provides all readline functions
 * OS           : SLOS
 * Platform     : generic
 * History      :
 *
 * 16th November 2001 Andrew N. Sloss
 * - start adding comments
 *
 *****************************************************************************/

/* -- readLine ----------------------------------------------------------------
 *
 * Description : clear all the characters up to a position. This is the
 *               main interpreter loop for the command line.
 *
 * Parameters  : char *prompt - command line prompt.
 *             : char *buffer - the buffer 
 *             : int maxlen - maximum length
 * Return      : integer position
 * Notes       : none...
 *
 */

int readLine(char *prompt, char *buffer, int maxlen);

⌨️ 快捷键说明

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