mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-26 03:51:49 +03:00
blinking cursor (fixes #191)
This commit is contained in:
parent
38cda117e2
commit
6c884e090c
@ -247,6 +247,8 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
|
.d-flex
|
||||||
|
.mr-3
|
||||||
label Terminal bell
|
label Terminal bell
|
||||||
br
|
br
|
||||||
div(
|
div(
|
||||||
@ -276,6 +278,29 @@
|
|||||||
)
|
)
|
||||||
| Audible
|
| Audible
|
||||||
|
|
||||||
|
div
|
||||||
|
label Blink cursor
|
||||||
|
br
|
||||||
|
div(
|
||||||
|
'[(ngModel)]'='config.store.terminal.cursorBlink',
|
||||||
|
(ngModelChange)='config.save()',
|
||||||
|
ngbRadioGroup
|
||||||
|
)
|
||||||
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
input(
|
||||||
|
type='radio',
|
||||||
|
ngbButton,
|
||||||
|
[value]='false'
|
||||||
|
)
|
||||||
|
| Off
|
||||||
|
label.btn.btn-secondary(ngbButtonLabel)
|
||||||
|
input(
|
||||||
|
type='radio',
|
||||||
|
ngbButton,
|
||||||
|
[value]='true'
|
||||||
|
)
|
||||||
|
| On
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label Session persistence
|
label Session persistence
|
||||||
select.form-control(
|
select.form-control(
|
||||||
|
@ -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