Skip to content

Commit

Permalink
ドキュメント更新: Ctrl-C & 入力内容破棄
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Oct 11, 2014
1 parent 08d2b37 commit 723af00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nyagos_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Execute `COMMAND` and continue the command-line.
* UP , Ctrl-P : Replace commandline to previous input one
* DOWN , Ctrl-N : Replace commnadline to next input one
* TAB , Ctrl-I : Complete file or command-name
* Ctrl-C : Drop text all


## Built-in commnads
Expand Down Expand Up @@ -204,7 +205,7 @@ FUNCNAME are:
"BACKWARD_DELETE_CHAR" "BACKWARD_CHAR" "CLEAR_SCREEN" "DELETE_CHAR"
"DELETE_OR_ABORT" "ACCEPT_LINE" "KILL_LINE" "UNIX_LINE_DISCARD"
"FORWARD_CHAR" "BEGINNING_OF_LINE" "PASS" "YANK" "KILL_WHOLE_LINE"
"END_OF_LINE" "COMPLETE" "PREVIOUS_HISTORY" "NEXT_HISTORY"
"END_OF_LINE" "COMPLETE" "PREVIOUS_HISTORY" "NEXT_HISTORY" "INTR"

If it succeeded, it returns true only. Failed, it returns nil and error-message.
Cases are ignores and, the character '-' is same as '\_'.
Expand Down
3 changes: 2 additions & 1 deletion nyagos_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ UNIX
* ↑ , Ctrl-P : ヒストリ:一つ前の入力内容を展開する
* ↓ , Ctrl-N : ヒストリ:一つ後の入力内容を展開する
* TAB , Ctrl-I : ファイル名・コマンド名補完
* Ctrl-C : 入力内容を破棄

## 内蔵コマンド

Expand Down Expand Up @@ -242,7 +243,7 @@ UTF8
"BACKWARD_DELETE_CHAR" "BACKWARD_CHAR" "CLEAR_SCREEN" "DELETE_CHAR"
"DELETE_OR_ABORT" "ACCEPT_LINE" "KILL_LINE" "UNIX_LINE_DISCARD"
"FORWARD_CHAR" "BEGINNING_OF_LINE" "PASS" "YANK" "KILL_WHOLE_LINE"
"END_OF_LINE" "COMPLETE" "PREVIOUS_HISTORY" "NEXT_HISTORY"
"END_OF_LINE" "COMPLETE" "PREVIOUS_HISTORY" "NEXT_HISTORY" "INTR"

成功すると true を、失敗すると nil とエラーメッセージを返します。
大文字・小文字は区別せず、\_ のかわりに - を使うことができます。
Expand Down

0 comments on commit 723af00

Please sign in to comment.