# ChatTextArea

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea)

TextArea subclass with custom key handling for chat input.

## Signature

```python
ChatTextArea(
    self,
    **kwargs: Any = {},
)
```

## Extends

- `PasteBurstTextArea`

## Constructors

```python
__init__(
    self,
    **kwargs: Any = {},
) -> None
```


## Properties

- `BINDINGS`
- `argument_hint`

## Methods

- [`render_line()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/render_line)
- [`scroll_cursor_visible()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/scroll_cursor_visible)
- [`set_app_focus()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/set_app_focus)
- [`set_completion_active()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/set_completion_active)
- [`action_insert_newline()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/action_insert_newline)
- [`action_cursor_up()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/action_cursor_up)
- [`action_cursor_down()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/action_cursor_down)
- [`action_delete_right()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/action_delete_right)
- [`action_delete_word_left()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/action_delete_word_left)
- [`replace_placeholder_with_text()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/replace_placeholder_with_text)
- [`set_text_from_history()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/set_text_from_history)
- [`move_cursor_to_end()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/move_cursor_to_end)
- [`clear_text()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/clear_text)
- [`discard_text()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/discard_text)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/tui/widgets/chat_input.py#L458)