textpath.f
来自「Intro/: Directory containing introducto」· F 代码 · 共 33 行
F
33 行
$alias fdopen='fdopen'(%val,%ref) include 'phigs.f1.h' ! get the HP-PHIGS aliases program TextPath ! file "TextPath.f" include 'phigs.f2.h' ! get the HP-PHIGS constants integer*4 WorkstnID ! workstation identifier parameter (WorkstnID=1) ! value chosen by the user integer*4 ConnID ! connection identifier integer*4 WorkstnType ! workstation type parameter (WorkstnType=POIDDX) ! out/in, direct, dbl bfr, X integer*4 fdopen ! to get file descriptor call popph(fdopen(fnum(7), 'w'//char(0)), 0) ! open phigs call pue004('/dev/screen/phigs_window', ConnID) ! get connection ID call popwk(WorkstnID, ConnID, WorkstnType)! open workstation call popst(1) ! open display list structure call pschh(.06) ! set character height call pstxp(PRIGHT) ! set text path call ptx(.5, .7, " Right") ! write text with current path call pstxp(PLEFT) ! set text path call ptx(.5, .7, " Left") ! write text with current path call pstxp(PUP) ! set text path call ptx(.5, .7, " Up") ! write text with current path call pstxp(PDOWN) ! set text path call ptx(.5, .7, " Down") ! write text with current path call pclst ! close display list structure call ppost(WorkstnID, 1, 1.) ! send picture to display call puwk(WorkstnID, PPERFO) ! update the workstation call pclwk(WorkstnID) ! close workstation call pclph ! close phigs stop ! stop processing end ! end of program
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?