# 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.

Modifier-Enter / Ctrl+J newline bindings and the VSCode backslash+enter
fallback are inherited from `PasteBurstTextArea`.

## Signature

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

## Extends

- `PasteBurstTextArea`

## Constructors

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

| Name | Type |
|------|------|
| `kwargs` | `Any` |


## Properties

- `argument_hint`

## Methods

- [`set_shell_highlighting()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/set_shell_highlighting)
- [`on_focus()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/on_focus)
- [`on_text_area_changed()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/on_text_area_changed)
- [`get_line()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/chat_input/ChatTextArea/get_line)
- [`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/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/tui/widgets/chat_input.py#L572)