# Handle optional terminal dimensions and preserve active terminal size · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/b033c60d41c7c9612e420ed80f807da4ff81ea7c)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: b033c60d41c7c9612e420ed80f807da4ff81ea7c

Requested commit: b033c60d41c7c9612e420ed80f807da4ff81ea7c

Commit: b033c60d41c7c9612e420ed80f807da4ff81ea7c

Tree: 5f5f9f63e636362739ccc0288b886f02f3d1a9ed

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Handle optional terminal dimensions and preserve active terminal size

- make `cols`/`rows` optional in terminal open contracts
- default new/restarted sessions to 120x30 when size hints are missing
- reuse existing terminal dimensions unless a new size is explicitly requested
- only send script terminal size hints when creating a new terminal

```

## Parents

- [2a5525a9e50ad724aa57673384977bebd1adc95b](https://git.cafe/flambo/t3code/commit/2a5525a9e50ad724aa57673384977bebd1adc95b?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/b033c60d41c7c9612e420ed80f807da4ff81ea7c?format=markdown)
