# Use terminal close API with exit fallback in ChatView · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/e6d645072817752553b610a6f53bf3e4ae586498)

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

Visibility: public

Requested revision: e6d645072817752553b610a6f53bf3e4ae586498

Requested commit: e6d645072817752553b610a6f53bf3e4ae586498

Commit: e6d645072817752553b610a6f53bf3e4ae586498

Tree: 50fa28ada675f14e7999b7559569bce39ecf70fb

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Use terminal close API with exit fallback in ChatView

- Call `api.terminal.close` when available when closing a terminal tab
- Fall back to writing `exit\n` to preserve compatibility with older/uninitialized terminals

```

## Parents

- [739205872f89dec116e81a0a2cf4c1cb3a6f0acb](https://git.cafe/gitcafe/t3code/commit/739205872f89dec116e81a0a2cf4c1cb3a6f0acb?format=markdown)

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