Skip to content

Mintty params

Gore Liu edited this page Sep 17, 2017 · 2 revisions

Run mintty --help in cmd:

Usage: mintty [OPTION]... [ PROGRAM [ARG]... | - ]

Start a new terminal session running the specified program or the user's shell.
If a dash is given instead of a program, invoke the shell as a login shell.

Options:
  -c, --config FILE     Load specified config file (cf. -C or -o ThemeFile)
  -e, --exec ...        Treat remaining arguments as the command to execute
  -h, --hold never|start|error|always  Keep window open after command finishes
  -p, --position X,Y    Open window at specified coordinates
  -p, --position center|left|right|top|bottom  Open window at special position
  -p, --position @N     Open window on monitor N
  -s, --size COLS,ROWS  Set screen size in characters (also COLSxROWS)
  -s, --size maxwidth|maxheight  Set max screen size in given dimension
  -t, --title TITLE     Set window title (default: the invoked command) (cf. -T)
  -w, --window normal|min|max|full|hide  Set initial window state
  -i, --icon FILE[,IX]  Load window icon from file, optionally with index
  -l, --log FILE|-      Log output to file or stdout
      --nobidi|--nortl  Disable bidi (right-to-left support)
  -o, --option OPT=VAL  Set/Override config file option with given value
  -B, --Border frame|void  Use thin/no window border
  -R, --Report s|o      Report window position (short/long) after exit
      --nopin           Make this instance not pinnable to taskbar
  -D, --daemon          Start new instance with Windows shortcut key
  -H, --help            Display help and exit
  -V, --version         Print version information and exit
See manual page for further command line options and configuration.

More details: https://github.com/mintty/mintty/wiki


在 cmd 里运行 mintty --help 查看帮助信息:

用法: mintty [选项]... [ 程序名 [参数]... | - ]

用于新终端会话来运行用户 shell 的指定程序。
如果指定的程序是 dash,那么将它作为一个登陆 shell 来运行。

选项:
  -c, --config FILE     加载特定的配置文件(相关选项 -C 或者 -o 主题文件)
  -e, --exec ...        将剩余参数作为命令来运行
  -h, --hold never|start|error|always  命令运行结束后维持窗口开启状态
  -p, --position X,Y    在指定屏幕坐标打开窗口
  -p, --position center|left|right|top|bottom  在特定位置打开窗口
  -p, --position @N     在第 N 个显示器打开窗口
  -s, --size COLS,ROWS  设置屏幕大小(也可以用 COLSxROWS)
  -s, --size maxwidth|maxheight  设置屏幕的最大宽度或高度
  -t, --title TITLE     设置窗口标题(默认是运行过的命令(相关选项  -T)
  -w, --window normal|min|max|full|hide  设置窗口的初始状态
  -i, --icon FILE[,IX]  从文件加载图标,图标序号可选
  -l, --log FILE|-      输出日志到文件或者标准输出
      --nobidi|--nortl  禁用 bidi(从右向左的支持)
  -o, --option OPT=VAL  用指定的值覆盖配置文件中的值
  -B, --Border frame|void  使用窗口窄边框/无边框
  -R, --Report s|o      退出后报告窗口位置信息(短/长)
      --nopin           让这个实例不能被固定在任务栏上
  -D, --daemon          使用 Win 快捷键来启动新实例
  -H, --help            显示帮助信息然后退出
  -V, --version         打印版本信息然后退出
请查阅 man 手册了解更多命令行选项和配置相关帮助内容。

更多细节:https://github.com/mintty/mintty/wiki