cd.bsh
来自「用java 编写的源码开放的文本编辑器。有很多有用的特性」· BSH 代码 · 共 21 行
BSH
21 行
/** Change working directory for dir(), etc. commands (like Unix cd)*/bsh.help.cd = "usage: cd( path )";/* Additions by Kevin Raulerson, http://www.spin.com.mx/~kevinr/*/void cd( String pathname ) { file = pathToFile( pathname ); if ( file.exists() && file.isDirectory() ) bsh.cwd = file.getCanonicalPath(); else print( "No such directory: "+pathname);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?