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

📄 crt.4

📁 Object-Oriented Programming With ANSI-C这本书中的源代码!找了很久
💻 4
字号:
.\"	Crt.4 -- 1.2 Sep 30 06:35:24 1993.\"	Copyright (c) 1993 Axel T. Schreiner.TH Crt 4 "local: ats".SH NAME\f3IcClass  Crt: Ic\fP \(em input/output objects for curses.SH SYNOPSIS.nfObjct    Ic        \f3Crt\fP            CButton            CLineout.sp .5.B new(Crt());\f3new(CButton(), "\f2text\fP", \f2y\f3, \f2x\f3);\f1\f3new(CLineOut(), \f2\y\f3, \f2x\f3, \f2len\f3);\f1.sp .5\f3void makeWindow (\f2self\f3, int \f2rows\f3, int \f2cols\f3, int \f2x\f3, int \f2y\f3)\f1\f3void addStr (\f2self\f3, int \f2y\f3, int \f2x\f3, const char * \f2s\f3)\f1.BI "void crtBox (" self ).SH DESCRIPTIONA.B Crtobject wraps a.IR curses (3)window..I cursesis initializedwhen the first.B Crtobject is created..PP.B Crt_gate()is the event loop:it monitors the keyboard;it implements a.IR vi -stylecursor move for the keys.BR hjkl ,and possibly, for the arrow keys;if.I returnis pressed, it sends an.B Eventobject with.I kind1 and an array with column and row position;if.IR control -Dis pressed,.B gatereturns.BR reject ;any other key is sent on as an.B Eventobject with a string containing the key character..PPA.B CLineOutobject implements a.B LineOutobject on a.I cursesscreen.Incoming strings should not exceed.I lenbytes..PPA.B CButtonobject implements a.B Buttonobject on a.I cursesscreen.If it receives a matching text, it sends it.Additionally, if it receives a position event,e.g., from a.B Crtobject,and if the coordinates are within its window, it sends its text on..SH SEE ALSOEvent(4)

⌨️ 快捷键说明

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