Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

image position problem. #1

Open
anguskwan opened this issue Oct 30, 2019 · 2 comments
Open

image position problem. #1

anguskwan opened this issue Oct 30, 2019 · 2 comments

Comments

@anguskwan
Copy link

image

seems image doesnot show under current line.

code:

import { Terminal } from 'xterm'
import { FitAddon } from 'xterm-addon-fit'
import { SearchAddon } from 'xterm-addon-search'
import { SixelAddon } from 'xterm-addon-sixel'

var term = new Terminal({
  rendererType: 'canvas', // 渲染类型
  rows: 50, // 行数
  cols: 150,
  convertEol: true, // 启用时,光标将设置为下一行的开头
  scrollback: 10, // 终端中的回滚量
  disableStdin: false, // 是否应禁用输入。
  cursorStyle: 'underline', // 光标样式
  cursorBlink: true, // 光标闪烁
  theme: {
    foreground: 'white', // 字体
    background: '#060101', // 背景色
    cursor: 'help' // 设置光标
  }
})

    term.loadAddon(fitAddon)
    term.loadAddon(searchAddon)
    term.loadAddon(sixelAddon)

package.json

"dependencies": {
   "node-pty": "^0.9.0-beta19",
   "user-home": "^2.0.0",
   "uuid": "^3.3.3",
   "vue": "^2.5.2",
   "vue-router": "^3.0.1",
   "ws": "^7.2.0",
   "xterm": "^4.1.0",
   "xterm-addon-attach": "^0.3.0",
   "xterm-addon-fit": "^0.2.1",
   "xterm-addon-search": "^0.3.0",
   "xterm-addon-sixel": "file:../xterm-addon-sixel"
 }
@jerch
Copy link
Owner

jerch commented Oct 30, 2019

Ah sorry have to disappoint you, the addon was just a playground to test how image support can be realized in xterm.js. Even never tested if the addon loading works correctly for this addon (guess it does).

I have moved development to this PR of the main repo: xtermjs/xterm.js#2503, which integrates much better with the codebase. Note that this early alpha stuff, still have to work around many low level issues, thus I disabled iterm2 image protocol for now (still SIXEL kinda works).

@anguskwan
Copy link
Author

@jerch it did not disappoint me. you have done a great job for us. thank you!
looking forward to the new feature.

and if there is some document & guide for plugin dev will be better for xterm.js.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants