2017-09-23 936 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也可以,但功能通常是禁用的(查看首选项,终端)。在其他平台上,你会看到不同之处。