⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 api.h

📁 上一个上传的有问题,这个是好的。visopsys包括系统内核和GUI的全部SOURCE code ,还包括一些基本的docs文档。里面src子目录对应所有SOURCE code.对于想研究操作系统的朋
💻 H
📖 第 1 页 / 共 5 页
字号:
  // Desc : Backspace the cursor, deleting any character there  return (syscall_0(_fnum_textBackSpace));}_X_ static inline int textTab(void){  // Proto: void kernelTextTab(void);  // Desc : Print a tab  return (syscall_0(_fnum_textTab));}_X_ static inline int textCursorUp(void){  // Proto: void kernelTextCursorUp(void);  // Desc : Move the cursor up one row.  Doesn't affect any characters there.  return (syscall_0(_fnum_textCursorUp));}_X_ static inline int textCursorDown(void){  // Proto: void kernelTextCursorDown(void);  // Desc : Move the cursor down one row.  Doesn't affect any characters there.  return (syscall_0(_fnum_textCursorDown));}_X_ static inline int textCursorLeft(void){  // Proto: void kernelTextCursorLeft(void);  // Desc : Move the cursor left one column.  Doesn't affect any characters there.  return (syscall_0(_fnum_ternelTextCursorLeft));}_X_ static inline int textCursorRight(void){  // Proto: void kernelTextCursorRight(void);  // Desc : Move the cursor right one column.  Doesn't affect any characters there.  return (syscall_0(_fnum_textCursorRight));}_X_ static inline int textEnableScroll(int enable){  // Proto: int kernelTextEnableScroll(int);  // Desc : Enable or disable screen scrolling for the current text output stream  return (syscall_1(_fnum_textEnableScroll, (void *) enable));}_X_ static inline void textScroll(int upDown){  // Proto: void kernelTextScroll(int upDown)  // Desc : Scroll the current text area up 'upDown' screenfulls, if negative, or down 'upDown' screenfulls, if positive.  syscall_1(_fnum_textScroll, (void *) upDown);}_X_ static inline int textGetNumColumns(void){  // Proto: int kernelTextGetNumColumns(void);  // Desc : Get the total number of columns in the text area.  return (syscall_0(_fnum_textGetNumColumns));}_X_ static inline int textGetNumRows(void){  // Proto: int kernelTextGetNumRows(void);  // Desc : Get the total number of rows in the text area.  return (syscall_0(_fnum_textGetNumRows));}_X_ static inline int textGetColumn(void){  // Proto: int kernelTextGetColumn(void);  // Desc : Get the number of the current column.  Zero-based.  return (syscall_0(_fnum_textGetColumn));}_X_ static inline void textSetColumn(int c){  // Proto: void kernelTextSetColumn(int);  // Desc : Set the number of the current column.  Zero-based.  Doesn't affect any characters there.  syscall_1(_fnum_textSetColumn, (void *) c);}_X_ static inline int textGetRow(void){  // Proto: int kernelTextGetRow(void);  // Desc : Get the number of the current row.  Zero-based.  return (syscall_0(_fnum_textGetRow));}_X_ static inline void textSetRow(int r){  // Proto: void kernelTextSetRow(int);  // Desc : Set the number of the current row.  Zero-based.  Doesn't affect any characters there.  syscall_1(_fnum_textSetRow, (void *) r);}_X_ static inline void textSetCursor(int on){  // Proto: void kernelTextSetCursor(int);  // Desc : Turn the cursor on (1) or off (0)  syscall_1(_fnum_textSetCursor, (void *) on);}_X_ static inline int textScreenClear(void){  // Proto: void kernelTextScreenClear(void);  // Desc : Erase all characters in the text area and set the row and column to (0, 0)  return (syscall_0(_fnum_textScreenClear));}_X_ static inline int textScreenSave(textScreen *screen){  // Proto: int kernelTextScreenSave(textScreen *);  // Desc : Save the current screen in the supplied structure.  Use with the textScreenRestore function.  return (syscall_1(_fnum_textScreenSave, screen));}_X_ static inline int textScreenRestore(textScreen *screen){  // Proto: int kernelTextScreenRestore(textScreen *);  // Desc : Restore the screen previously saved in the structure with the textScreenSave function  return (syscall_1(_fnum_textScreenRestore, screen));}_X_ static inline int textInputStreamCount(objectKey strm){  // Proto: int kernelTextInputStreamCount(kernelTextInputStream *);  // Desc : Get the number of characters currently waiting in the specified input stream  return (syscall_1(_fnum_textInputStreamCount, strm));}_X_ static inline int textInputCount(void){  // Proto: int kernelTextInputCount(void);  // Desc : Get the number of characters currently waiting in the current input stream  return (syscall_0(_fnum_textInputCount));}_X_ static inline int textInputStreamGetc(objectKey strm, char *cp){  // Proto: int kernelTextInputStreamGetc(kernelTextInputStream *, char *);  // Desc : Get one character from the specified input stream (as an integer value).  return (syscall_2(_fnum_textInputStreamGetc, strm, cp));}_X_ static inline int textInputGetc(char *cp){  // Proto: char kernelTextInputGetc(void);  // Desc : Get one character from the default input stream (as an integer value).  return (syscall_1(_fnum_textInputGetc, cp));}_X_ static inline int textInputStreamReadN(objectKey strm, int num, char *buff){  // Proto: int kernelTextInputStreamReadN(kernelTextInputStream *, int, char *);  // Desc : Read up to 'num' characters from the specified input stream into 'buff'  return (syscall_3(_fnum_textInputStreamReadN, strm, (void *) num, buff));}_X_ static inline int textInputReadN(int num, char *buff){  // Proto: int kernelTextInputReadN(int, char *);  // Desc : Read up to 'num' characters from the default input stream into 'buff'  return (syscall_2(_fnum_textInputReadN, (void *)num, buff));}_X_ static inline int textInputStreamReadAll(objectKey strm, char *buff){  // Proto: int kernelTextInputStreamReadAll(kernelTextInputStream *, char *);  // Desc : Read all of the characters from the specified input stream into 'buff'  return (syscall_2(_fnum_textInputStreamReadAll, strm, buff));}_X_ static inline int textInputReadAll(char *buff){  // Proto: int kernelTextInputReadAll(char *);  // Desc : Read all of the characters from the default input stream into 'buff'  return (syscall_1(_fnum_textInputReadAll, buff));}_X_ static inline int textInputStreamAppend(objectKey strm, int ascii){  // Proto: int kernelTextInputStreamAppend(kernelTextInputStream *, int);  // Desc : Append a character (as an integer value) to the end of the specified input stream.  return (syscall_2(_fnum_textInputStreamAppend, strm, (void *) ascii));}_X_ static inline int textInputAppend(int ascii){  // Proto: int kernelTextInputAppend(int);  // Desc : Append a character (as an integer value) to the end of the default input stream.  return (syscall_1(_fnum_textInputAppend, (void *) ascii));}_X_ static inline int textInputStreamAppendN(objectKey strm, int num, char *str){  // Proto: int kernelTextInputStreamAppendN(kernelTextInputStream *, int, char *);  // Desc : Append 'num' characters to the end of the specified input stream from 'str'  return (syscall_3(_fnum_textInputStreamAppendN, strm, (void *) num, str));}_X_ static inline int textInputAppendN(int num, char *str){  // Proto: int kernelTextInputAppendN(int, char *);  // Desc : Append 'num' characters to the end of the default input stream from 'str'  return (syscall_2(_fnum_textInputAppendN, (void *) num, str));}_X_ static inline int textInputStreamRemove(objectKey strm){  // Proto: int kernelTextInputStreamRemove(kernelTextInputStream *);  // Desc : Remove one character from the start of the specified input stream.  return (syscall_1(_fnum_textInputStreamRemove, strm));}_X_ static inline int textInputRemove(void){  // Proto: int kernelTextInputRemove(void);  // Desc : Remove one character from the start of the default input stream.  return (syscall_0(_fnum_textInputRemove));}_X_ static inline int textInputStreamRemoveN(objectKey strm, int num){  // Proto: int kernelTextInputStreamRemoveN(kernelTextInputStream *, int);  // Desc : Remove 'num' characters from the start of the specified input stream.  return (syscall_2(_fnum_textInputStreamRemoveN, strm, (void *) num));}_X_ static inline int textInputRemoveN(int num){  // Proto: int kernelTextInputRemoveN(int);  // Desc : Remove 'num' characters from the start of the default input stream.  return (syscall_1(_fnum_textInputRemoveN, (void *) num));}_X_ static inline int textInputStreamRemoveAll(objectKey strm){  // Proto: int kernelTextInputStreamRemoveAll(kernelTextInputStream *);  // Desc : Empty the specified input stream.  return (syscall_1(_fnum_textInputStreamRemoveAll, strm));}_X_ static inline int textInputRemoveAll(void){  // Proto: int kernelTextInputRemoveAll(void);  // Desc : Empty the default input stream.  return (syscall_0(_fnum_textInputRemoveAll));}_X_ static inline void textInputStreamSetEcho(objectKey strm, int onOff){  // Proto: void kernelTextInputStreamSetEcho(kernelTextInputStream *, int);  // Desc : Set echo on (1) or off (0) for the specified input stream.  When on, any characters typed will be automatically printed to the text area.  When off, they won't.  syscall_2(_fnum_textInputStreamSetEcho, strm, (void *) onOff);}_X_ static inline void textInputSetEcho(int onOff){  // Proto: void kernelTextInputSetEcho(int);  // Desc : Set echo on (1) or off (0) for the default input stream.  When on, any characters typed will be automatically printed to the text area.  When off, they won't.  syscall_1(_fnum_textInputSetEcho, (void *) onOff);}// // Disk functions//_X_ static inline int diskReadPartitions(const char *name){  // Proto: int kernelDiskReadPartitions(const char *);  // Desc : Tells the kernel to (re)read the partition table of disk 'name'.  return (syscall_1(_fnum_diskReadPartitions, name));}_X_ static inline int diskReadPartitionsAll(void){  // Proto: int kernelDiskReadPartitionsAll(void);  // Desc : Tells the kernel to (re)read all the disks' partition tables.  return (syscall_0(_fnum_diskReadPartitionsAll));}

⌨️ 快捷键说明

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