本实例假设下列关于 BestTextEditor 应用程序的事实成立:
它安装在 /usr/BTE 目录下。
用户会话的语言是缺省值 C。
启动 BestTextEditor 的命令行是:
BTEd {filename]
其中 filename 是将在新的窗口中打开的数据文件的名称。BestTextEditor 创建自己的窗口-就是说,它不是在终端仿真器窗口中运行。
BestTextEditor 创建和使用两种类型的数据文件:
文档文件。它们的命名惯例是 *.bte。BestTextEditor 提供了打印它自己的 .bte 数据文件的命令行。该命令的语法是:
BTEPrint [-ddestination] [-s]filename
其中:
-d destination-指定目标打印机。
-s-指定静音打印。应用程序的打印对话框不显示。
filename-指定要打印的文件。
模板文件。它们的命名惯例是 *.tpl。模板文件不能打印。
现有的 BestTextEditor 的非桌面 app-defaults 文件内包含界面字体、前景色和背景色的资源。