只需一步,快速开始
yy5heng发表于2008-6-15 22:35:00不错,不错,刚试用了一下,是利用状态栏显示文本的工具,运行后回车或右键或空格都可以换行,厉害!希望更公布源码,其中的关键应该是输入输出的部分。
用参数o可以改为在命令行输出
还有一些参数功能还没有完全完成
使用道具 举报
有点意思.模仿写了一下.
(defun gps->file-2lst(fn / f line re) (if (findfile fn) (progn (setq f (open (findfile fn) "r")) (while (setq line (read-line f)) (setq re (cons line re )) ) (close f) ) ) (reverse re) ) (defun c:rdbk ( / fn i ) (if (setq fn (getfiled "选择TXT文件" "" "txt" 8)) (progn (princ "\n按任意键继续阅读.鼠标点击退出:") (setq lst (gps->file-2lst fn) i 0 len (length lst)) (while (and (= 2 (car (grread nil 4 3))) (< i len)) (setvar "modemacro" (vl-prin1-to-string (nth i lst) )) (setq i (1+ i)) ) (princ "\n结束.") (setvar "modemacro" "") ) ))
xshrimp发表于2008-6-17 12:54:00有点意思.模仿写了一下.(defun gps->file-2lst(fn / f line re) (if (findfile fn) (progn (setq f (open (findfile fn) \"r\"))&
shlisp作者吧,我和你通过Email啊~
你的程序一去不覆返!
能不能设计成可以上下翻的?!
zcsoft发表于2008-7-24 19:12:00你的程序一去不覆返!能不能设计成可以上下翻的?!
参数O可以选择在命令行输出
400行以内可以回翻
本来设计了跳转至某行和书签函数
但不是太好用
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-6-9 00:13 , Processed in 0.191602 second(s), 19 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.