Mac终端"重置"命令

时间:2017-09-23 07:56:00

标签: macos terminal ncurses xterm

**

如何使用命令reset -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? 

那么我应该输入什么?

1 个答案:

答案 0 :(得分:0)

reset(一个ncurses实用程序)不那个。一些终端响应resize中使用的 dtterm 转义序列(例如xterm和模仿者)(xterm实用程序):

resize -s 40 40

为了它的价值:Terminal.app和 iTerm 识别序列。 iTerm2也可以,但通常会禁用该功能(查看首选项终端)。在其他平台上,您会看到不同之处。

相关问题