2014-02-28 7 views

답변

3

는 사실 :paste 좋은 옵션처럼 들리지만, 당신이 정말로 키 바인딩을 무시하려는 경우 당신은 당신의 자신의 설정은 다음과 같이 파일을 제공 할 수 있습니다

scala -Djline.keybindings=myfile 

나는 기본 스칼라 항아리에서 고개 파일의 형식은 파일 scala/tools/jline/keybindings.properties에서

jline.jar에서 :이 같은

# Keybinding mapping for JLine. The format is: 
# [key code]=[logical operation] 

# CTRL-A: move to the beginning of the line 
1=MOVE_TO_BEG 

# CTRL-B: move to the previous character 
2=PREV_CHAR 

# CTRL-D: close out the input stream 
4=EXIT 

# CTRL-E: move the cursor to the end of the line 
5=MOVE_TO_END 

# CTRL-F: move to the next character 
6=NEXT_CHAR 

# CTRL-G: abort 
7=ABORT 

# BACKSPACE, CTRL-H: delete the previous character 
# 8 is the ASCII code for backspace and therefor 
# deleting the previous character 
8=DELETE_PREV_CHAR 

# TAB, CTRL-I: signal that console completion should be attempted 
9=COMPLETE 

명령 MATC 교체 힌지 옵션 9 빈 문자열.

http://www.scala-sbt.org/release/docs/Howto/interactive.html#change-keybindings

+1

감사 – javadba

관련 문제