[xyzzy:04191] telnet from shell
- Subject: [xyzzy:04191] telnet from shell
- From: applause@xxxxxxxxxxxxxx (寺川 愛印)
- X-mailer: AL-Mail32 Version 1.10
xyzzy の shellモード から telnet する件について。
login: プロンプトに入力が出来なかったのは、
Win32API ReadConsoleInput を使っていたことの他に、
もうひとつ、"login:" がプロンプトとして
認識されていないという原因がありました。
ということで、
[xyzzy:04137]で亀井さんは書きました:
>shell-mode だったら、自分でプロンプトも入力してやると
>いう手もありますが。
"login: " と出たら ">username" と打ち、
"password:" と出たら ">password" と打てば何とかなるんですね。
shell.l の *shell-prompt-regexp* に ":" を追加するとか、
(defvar *shell-prompt-regexp* "^[^#$%:>?\n]*[#$%:>?] *")
あるいは、.xyzzy で、
(setq ed::*shell-prompt-regexp* "^[^#$%:>?\n]*[#$%:>?] *")
とすると、場合によって不幸なこともありますかね?
不幸になったら、[xyzzy:04132] 参照ということで。
#まだ試していませんが。
亀井さんは書きました:
>GetFileType()
どうもです。
大岩さんは書きました:
># process-filter 使って自前で telnet プロトコル喋ろうかなぁとか
># 思ってました (^^;;
#最初muleでそれやろうとして、仕組みが分からなくて...(以下略
# tntもこっそり変更。
ではでは。
----
寺川 愛印 applause@xxxxxxxxxxxxxx
http://www.tky.3web.ne.jp/~applause/