# :Console

<div align="left"><figure><img src="https://1061433021-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNfMkmxWyR6N5SCXKR8U%2Fuploads%2FNWerISLRmdw6PyU3fYkk%2Fimage.png?alt=media&#x26;token=212924a1-53ec-4f7c-bc01-e4d7c307354c" alt="" width="312"><figcaption></figcaption></figure></div>

```typescript
type Console = {
	Enabled: boolean?,
	ReadOnly: boolean?,
	Value: string?,
	RichText: boolean?,
	TextWrapped: boolean?,
	LineNumbers: boolean?,
	AutoScroll: boolean,
	LinesFormat: string,
	MaxLines: number,
	UpdateLineNumbers: (Console) -> Console,
	UpdateScroll: (Console) -> Console,
	SetValue: (Console, Value: string) -> Console,
	GetValue: (Console) -> string,
	Clear: (Console) -> Console,
	AppendText: (Console, ...string) -> Console,
	CheckLineCount: (Console) -> Console
}
```

### Example usage:

```lua
:Console({
    LineNumbers = true
})
```

### **Theme colors:**

| Tag                | Affects                               |
| ------------------ | ------------------------------------- |
| ConsoleLineNumbers | Line number color                     |
| TextFont           | Line number and text font             |
| TextSize           | Font size of line numbers and content |
