newterm.3cur

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3CUR 代码 · 共 64 行

3CUR
64
字号
.TH newterm 3cur .SH Namenewterm \- open new terminal.SH Syntax.br.B#include <stdio.h>.br.B#include <cursesX.h>.PP.br.BSCREEN \(**newterm(type, outfd, infd).br.Bchar \(**type;.br.BFILE \(**outfd, \(**infd;.SH Description.NXR "newterm subroutine".NXA "initscr subroutine" "newterm subroutine"Programs using more than one terminal should call the.PN newtermroutine for each terminal instead of .PN initscr .The routine .PN newtermshould be called ONCE for each terminal..PPThe.PN newtermroutine returns a variable of typeSCREEN \(**which should be saved as a reference to that terminal.There are three arguments.The first argument .PN type ,is the type of the terminal to be used in place ofTERM.The second argument,.PN outfd, is a file pointer for output to the terminal.The third argument, .PN infd ,is a file pointer for input from the terminal.The program must also callthe.PN endwin routine for each terminal, after each terminalhas finished running a .PN cursesapplication..SH Return ValuesOn success the.PN newtermfunction returns a pointer to the new SCREEN structure created.  On failurethe function returns a null pointer..SH See Alsoendwin(3cur), initscr(3cur)

⌨️ 快捷键说明

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