-
Notifications
You must be signed in to change notification settings - Fork 310
Themes
PsySH supports output themes, which control prompt strings, formatter styles and colors, and compact output.
There are three built-in themes: modern
, compact
or classic
, which can be specified directly:
'theme' => 'classic'
For more control, specify a custom theme:
'theme' => [
'prompt' => 'β« ',
'bufferPrompt' => 'β― ',
'replayPrompt' => 'β€ ',
'returnValue' => 'β ',
],
Option | Description |
---|---|
|
With the Default: |
|
The standard input prompt. Default: |
|
The input prompt used for multi-line input continuation. Default: |
|
Output prefix indicating lines replayed from history. Default: |
|
Output prefix indicating the evaluated input's return value. Default: |
|
Override output formatting colors and styles. Available colors are Note that the exact effect of these colors and options on output depends on your terminal emulator application and settings. If you're having a hard time seeing error messages in your terminal try: 'theme' => [
'styles' => [
// name => [foreground, background, [options]],
'error' => ['black', 'red', ['bold']],
]
] Default: |