📄 gpm.init
字号:
#!/bin/sh# $Id: gpm.init,v 1.7 2001/06/26 00:31:29 solar Exp $## chkconfig: 2345 85 15# description: \# gpm provides mouse support to text-based Linux applications as \# well as console cut-and-paste operations using the mouse.## processname: gpm# pidfile: /var/run/gpm.pid# config: /etc/sysconfig/mouse# source function library. /etc/init.d/functionsOWL_STARTUP_ENABLE=1MOUSECFG=/etc/sysconfig/mousecase "$1" instart) if [ -f "$MOUSECFG" ]; then . "$MOUSECFG" else MOUSETYPE="none" fi if [ "$MOUSETYPE" = "none" ]; then echo "Not starting gpm (no mouse is configured)" exit 0 fi if [ "$MOUSETYPE" = "Microsoft" ]; then MOUSETYPE=ms fi if [ -n "$MOUSETYPE" ]; then GPM_ARG="-t $MOUSETYPE" else GPM_ARG="" fi if [ "0$OWL_STARTUP_VERSION" -ge 3 ]; then daemon --pidfile /var/run/gpm.pid --expect-user root \ -- gpm "$GPM_ARG" else daemon gpm "$GPM_ARG" fi ;;stop) if [ "0$OWL_STARTUP_VERSION" -ge 3 ]; then killproc --pidfile /var/run/gpm.pid --expect-user root gpm else killproc gpm fi ;;restart|reload) $0 stop $0 start ;;status) status --pidfile /var/run/gpm.pid --expect-user root gpm ;;*) echo "Usage: gpm {start|stop|restart|status}" exit 1esacexit $?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -