bochs-docs

来自「我师兄自己写的操作系统」· 代码 · 共 35 行

TXT
35
字号
#!/bin/shBROWSER=netscapeURL=/usr/local/share/doc/bochs/DOC-linux.htmlMY_PATH=/usr/local/bin/bochs-docscat <<EOF-----------------------------------------------------Viewing Bochs HTML documentation with $BROWSER-----------------------------------------------------EOFif test "$BROWSER" = netscape; then  # first try to put the documentation into the currently running netscape.  $BROWSER -remote "openURL($URL)" >/dev/null 2>/dev/null  # if that succeeded, we're done  if test $? = 0; then    exit 0  fifi# try starting a new browser instead$BROWSER $URL# nothing else to try, so if that failed print a decent error messageif test $? != 0; then  echo ERROR: Browser ended with an error code $?.  This may mean that  echo the browser was not found in your PATH, or that the browser was  echo killed.  To use a different browser, edit $MY_PATH  echo and change the BROWSER variable.  exit 1fiexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?