相信您在網(wǎng)路上一定用過如 tin,elm 等工具, 這些軟體有項共同的特色,
即他們能利用上下左右等方向鍵來控制游標(biāo)的位置. 除此之外, 這些程式
的畫面也較為美觀. 對 Programming 有興趣的朋友一定對此感到好奇, 也
許他能在 PC 上用 Turbo C 輕易地寫出類似的程式, 然而, 但當(dāng)他將相同
的程式一字不變地移到工作站上來編譯時, 卻出現(xiàn)一堆抓也抓不完的錯誤.
其實, 原因很簡單, 他使用的函式庫可能在 UNIX 上是沒有定義的. 有些
在 Turbo-C 上被廣泛使用的一些函式, 可能在 UNIX 上是不被定義的.
為了因應(yīng)網(wǎng)路上各式各樣的終端機(jī)形態(tài) (terminal), UNIX 上特別發(fā)展出
一套函式庫, 專門用來處理 UNIX 上游標(biāo)移動及螢?zāi)坏娘@示. 這就是本篇
文章要為您介紹的 - CURSES.h 函式庫. 利用這個函式庫, 您也可以寫出
像 elm 般利用方向鍵來移動光棒位置的程式. (CCCA 近來所提供的線上選
課程式, 及程式服務(wù)界面, 即是筆者利用 CURSES 發(fā)展而成的 )
標(biāo)簽:
Programm
tin
elm
網(wǎng)路
上傳時間:
2013-11-26
上傳用戶:zxc23456789
CForms, by Lars Berntzon (Stockholm, Sweden), is a tool for building interactive forms-driven applications. CForms applications can run on nany type of library supported by the "CURSES" library. CForms uses a language-based design to define forms. An application may contain C source modules, field pictures, field definitions, literals, and events. CForms applications must be compiled with the CFC compiler and linked with the CFL linker.CForms runs on most Unix SYSV compatible platforms including SunOS, Dell-SVR4, and Diab SYSV.3. It requires a CURSES library and yacc or GNU Bison. CForms version 2.1 is now available as volume #402 in the CUG Library.
標(biāo)簽:
forms-driven
interactive
Stockholm
Berntzon
上傳時間:
2013-12-20
上傳用戶:himbly