( terminalWidth: number, terminalHeight: number, )
| 148 | * Exported for testing purposes. |
| 149 | */ |
| 150 | export const computeTerminalLayout = ( |
| 151 | terminalWidth: number, |
| 152 | terminalHeight: number, |
| 153 | ): TerminalLayout => { |
| 154 | const widthSize = getWidthSize(terminalWidth) |
| 155 | const heightSize = getHeightSize(terminalHeight) |
| 156 | |
| 157 | return { |
| 158 | width: createWidthHelper(widthSize), |
| 159 | height: createHeightHelper(heightSize), |
| 160 | terminalWidth, |
| 161 | terminalHeight, |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Hook providing semantic terminal layout information. |
no test coverage detected