2017-09-23 935 views
2

**Mac終端「重置」命令

如何使用命令重置-w獲取新的調整大小的窗口?

**

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? 

所以在地球上,我應該怎麼輸入?

回答

0

reset(一個ncurses的實用程序)不這一點。一些終端迴應的dtterm轉義序列(如xterm和模仿者)在resize(一個xterm實用程序)使用:

resize -s 40 40 

對於它的價值:Terminal.app和的iTerm識別序列。 iTerm2也可以,但功能通常是禁用的(查看首選項,終端)。在其他平臺上,你會看到不同之處。