Mac终端"reset"命令

Mac Terminal "reset"command

**

如何使用命令 reset -w 重新调整大小window?

**

sheng:~ Mck$ reset -h
reset: illegal option -- h
Usage: tset [options] [terminal]

Options:
-c          set control characters
-e ch       erase character
-I          no initialization strings
-i ch       interrupt character
-k ch       kill character
-m mapping  map identifier to type
-Q          do not output control key settings
-r          display term on stderr
-s          output TERM set command
-V          print curses-version
-w          set window-size

我已经试过了,但根本不起作用:

reset: can't initialize terminal type 40*40 (error -1)
Terminal type? 40,40
reset: can't initialize terminal type 40,40 (error -1)
Terminal type? (40,40)
reset: can't initialize terminal type (40,40) (error -1)
Terminal type? 

那我到底要输入什么呢?

reset (an ncurses utility) does not do that. Some terminals respond to the dtterm escape sequences (such as xterm and imitators) used in resize(xterm 实用程序):

resize -s 40 40

它的价值:Terminal.app 和 iTerm 识别序列。 iTerm2 也有,但该功能通常被禁用(查看 PreferencesTerminal)。在其他平台上,您会看到差异。