Path: galaxy.trc.rwcp.or.jp!titcca!srava!utashiro From: utashiro@srava.sra.JUNET (Kazumasa Utashiro [sttg]) Newsgroups: fj.sources Subject: Request for monitor user. Message-ID: <552@srava.sra.JUNET> Date: 21 Apr 87 12:31:37 GMT Reply-To: utashiro@srava.sra.JUNET (Kazumasa Utashiro) Distribution: fj Organization: Software Research Associates, Inc., Japan Lines: 418 Xref: galaxy.trc.rwcp.or.jp fj.sources:271 X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.sources&nb=271&hd=a X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900 X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info. Newcsh というコマンドを知っていますか? 今度、UNIXのすべてのコマンドに newcsh と同じような コマンド・ライン・エディティングとヒストリの機能を提供する コマンドを作りました。 そのうち mod.sources あたりにポストしたいな、などと思っているのですが、 感想,バグ・フィックス(レポートでもいいか...),改良(案でも許すか...)などを いただきたい、という条件で、モニタを募集致します。 使ってみたいと思う方は私宛てにメイルを下さい。 使用できる条件は、pseudo tty (pty) があればどこでも動くと思います。 System V で sxt を使って雨後化死体...迫力のある変換だなあ... 動かしたいという方でも構いません。(もちろん今はできない) 先着??名様に限り送らさせていただきます。 歌代 utashiro@sra.junet Software Research Associates, Inc. S.P. (Snake's Paw) カナ漢字変換プログラム珍変換特集というのをやったら面白そうだなあ... もちろんプログラム名つきで マニュアルのみ同封します FEP(1L) UNIX Programmer's Manual FEP(1L) NAME fep - general-purpose front end processor SYNOPSIS fep [-emacs|-vi] [-h history-length] [-p prompt] UNIX- command DESCRIPTION Fep is a general purpose front end processor applicable to most UNIX commands that features vi(1)- or emacs(1)-like line editing and a command history mechanism like that of csh(1). Choice of editing style is made by selecting either the emacs mode or the vi mode (named for the editors they emu- late), specified either by command line option or by setting a variable interactively or in the start-up file. The default key bindings are shown below for both edit modes. These can be customized using the bind-to-key Com- mand. Emacs Bindings Here follow the default key bindings for the emacs mode. Each function name should be self-explanatory. The function names are defined as similarly to Gosling's emacs as possi- ble. ^@ mark ^A beginning-of-line ^B backward-character ^D delete-next-character ^E end-of-line ^F forward-character ^I insert-tab ^J new-line ^K kill-to-end-of-line ^L show-history ^M new-line ^N next-history ^P previous-history ^T previous-history ^Y yank-from-kill-buffer ^^ toggle-transparency ^X-^C terminate ^X-^D send-eof esc-b backward-word esc-B backward-word esc-d delete-next-word esc-D delete-next-word esc-f forward-word Printed 4/21/87 20 April 1987 1 FEP(1L) UNIX Programmer's Manual FEP(1L) esc-F forward-word esc-h delete-previous-word esc-H delete-previous-word esc-l list-file-name esc-L list-file-name esc-esc expand-file-name esc-? show-bindings esc-_ invoke-shell esc-< search-reverse esc-> search-forward /* Bindings inherited from the tty driver */ erase delete-previous-character kill delete-line rprnt reprint werase delete-previous-word lnext literal-next Vi bindings The vi mode has two sub-modes, the command mode and the text insert mode. The commands of vi emulated as correctly as possible. Here is a list of the default key bindings of the vi mode that differ from normal vi commands. ^A expand-file-name ^L list-file-name ^N next-history ^P previous-history ^R reprint ^^ toggle-transparency ^X-h show-history ^X-H show-history ^X-L list-file-name ^X-^X expand-file-name ^X-? show-bindings ^X-^C terminate ^X-^D send-eof Built-in commands Fep has some built-in commands that are not passed to child process but understood and processed by fep itself. These commands can be issued from the terminal or start-up file. bind-to-key function-name binding-key Change key bindings. For example, to bind the func- tion list-file-name to the string "^X-^X", type the following: bind-to-key list-file-name "\^X\^X" Printed 4/21/87 20 April 1987 2 FEP(1L) UNIX Programmer's Manual FEP(1L) fep-alias fep-alias name fep-alias name string The first form print all aliases. The second form print alias for name. The last form set string as an alias of name. As mentioned in BUGS, executing more(1) from fep is not allowed. So next alias is usefull. if $command == sh fep-alias more "fep-command more" fep-alias vi "fep-command vi" endif fep-unalias list Remove alias name for each word in list. fep-set variable = value Set a variable of fep to some value. fep-unset variable Unset a variable. fep-cd [ directory ] fep-chdir [ directory ] Change directory. It sometimes happens that a child process has changed directory, but fep is still in old directory. In such a case, neither list-file- name nor expand-file-name will function as expected. This command allows you to change fep's current working directory (default = home directory). fep-pwd Print fep's current working directory. fep-history [ number of history ] Show the history of commands under fep. fep-echo arguments Only print the arguments. Variable names can be used prefixed by the "$" character. fep-source file Read the specified file and execute it. The con- tents of the file are not sent to sub-processes. fep-save-history [ number of saved history ] file Save the current history buffer to a specified file. fep-read-history [ file ] Read in the command history from a specified file. Printed 4/21/87 20 April 1987 3 FEP(1L) UNIX Programmer's Manual FEP(1L) Default is the value of the history-file variable. This file name is understood as a path relative to the home directory. If you want to specify the name relative to the current directory instead, prefix the path by "./". fep-command command fep-! command Execute command. quit-fep Kill the sub-process and exit. pause-fep stop-fep suspend-fep Suspend fep itself. In the unlikely possibility that fep falls into a dead-lock in which the sub- processes have stopped but fep is still running, use one of these commands to escape from the situation. fep-read-from-file file fep-< file Read data from specified file and send them to sub- process. Sub-process read the data from the file as if they are typed from keyboard. fep-read-from-command command fep-