mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 11:33:35 +03:00
blinking cursor (fixes #191)
This commit is contained in:
parent
38cda117e2
commit
6c884e090c
@ -247,34 +247,59 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label Terminal bell
|
.d-flex
|
||||||
br
|
.mr-3
|
||||||
div(
|
label Terminal bell
|
||||||
'[(ngModel)]'='config.store.terminal.bell',
|
br
|
||||||
(ngModelChange)='config.save()',
|
div(
|
||||||
ngbRadioGroup
|
'[(ngModel)]'='config.store.terminal.bell',
|
||||||
)
|
(ngModelChange)='config.save()',
|
||||||
label.btn.btn-secondary(ngbButtonLabel)
|
ngbRadioGroup
|
||||||
input(
|
|
||||||
type='radio',
|
|
||||||
ngbButton,
|
|
||||||
[value]='"off"'
|
|
||||||
)
|
)
|
||||||
| Off
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
label.btn.btn-secondary(ngbButtonLabel)
|
input(
|
||||||
input(
|
type='radio',
|
||||||
type='radio',
|
ngbButton,
|
||||||
ngbButton,
|
[value]='"off"'
|
||||||
[value]='"visual"'
|
)
|
||||||
|
| Off
|
||||||
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
input(
|
||||||
|
type='radio',
|
||||||
|
ngbButton,
|
||||||
|
[value]='"visual"'
|
||||||
|
)
|
||||||
|
| Visual
|
||||||
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
input(
|
||||||
|
type='radio',
|
||||||
|
ngbButton,
|
||||||
|
[value]='"audible"'
|
||||||
|
)
|
||||||
|
| Audible
|
||||||
|
|
||||||
|
div
|
||||||
|
label Blink cursor
|
||||||
|
br
|
||||||
|
div(
|
||||||
|
'[(ngModel)]'='config.store.terminal.cursorBlink',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
ngbRadioGroup
|
||||||
)
|
)
|
||||||
| Visual
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
label.btn.btn-secondary(ngbButtonLabel)
|
input(
|
||||||
input(
|
type='radio',
|
||||||
type='radio',
|
ngbButton,
|
||||||
ngbButton,
|
[value]='false'
|
||||||
[value]='"audible"'
|
)
|
||||||
)
|
| Off
|
||||||
| Audible
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
input(
|
||||||
|
type='radio',
|
||||||
|
ngbButton,
|
||||||
|
[value]='true'
|
||||||
|
)
|
||||||
|
| On
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label Session persistence
|
label Session persistence
|
||||||
|
@ -322,6 +322,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
preferenceManager.set('copy-on-select', false)
|
preferenceManager.set('copy-on-select', false)
|
||||||
preferenceManager.set('alt-sends-what', 'browser-key')
|
preferenceManager.set('alt-sends-what', 'browser-key')
|
||||||
preferenceManager.set('alt-gr-mode', 'ctrl-alt')
|
preferenceManager.set('alt-gr-mode', 'ctrl-alt')
|
||||||
|
preferenceManager.set('cursor-blink', config.terminal.cursorBlink)
|
||||||
|
|
||||||
if (config.terminal.colorScheme.foreground) {
|
if (config.terminal.colorScheme.foreground) {
|
||||||
preferenceManager.set('foreground-color', config.terminal.colorScheme.foreground)
|
preferenceManager.set('foreground-color', config.terminal.colorScheme.foreground)
|
||||||
@ -368,6 +369,10 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
beam: hterm.hterm.Terminal.cursorShape.BEAM,
|
beam: hterm.hterm.Terminal.cursorShape.BEAM,
|
||||||
}[config.terminal.cursor]
|
}[config.terminal.cursor]
|
||||||
this.hterm.applyCursorShape()
|
this.hterm.applyCursorShape()
|
||||||
|
this.hterm.setCursorBlink(config.terminal.cursorBlink)
|
||||||
|
if (config.terminal.cursorBlink) {
|
||||||
|
this.hterm.onCursorBlink_()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
zoomIn () {
|
zoomIn () {
|
||||||
|
@ -11,6 +11,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
background: 'theme',
|
background: 'theme',
|
||||||
ligatures: false,
|
ligatures: false,
|
||||||
cursor: 'block',
|
cursor: 'block',
|
||||||
|
cursorBlink: true,
|
||||||
customShell: '',
|
customShell: '',
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
__nonStructural: true,
|
__nonStructural: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user