Xterm.js: Support strikethrough text style

Created on 3 Mar 2017  路  10Comments  路  Source: xtermjs/xterm.js

I notice these aren't implemented:

  • Dim \e[2m -> opacity: 50% (Done)
  • Italics \e[3m -> font-style: italic (Done https://github.com/xtermjs/xterm.js/pull/1422)
  • Strikethrough \e[9m -> text-decoration: line-through
arerenderer good first issue help wanted typenhancement

Most helpful comment

All 10 comments

Is this implemented as of today?
The css is here, but for me it's not working inside of vim, macOS

It's not implemented, what CSS are you referring to?

Sorry for the CSS part, I thought to have seen it there

Are you planning on implementing this soon or is this a low priority task?

Those are for the ones that are implemented.

This is low priority and is blocked by https://github.com/sourcelair/xterm.js/pull/756 which is reimplementing how the character attributes are stored.

Cool! 馃槏

Oh man, I want this so bad (italic).
It looks like this is no longer blocked by anything, correct?

Strike through would be really great. Git supports it as a diff style: git config --global diff.color.old "red strike"

PowerGit uses it for gone branches:

image

If anyone wants to help out with this you will want to copy how underline works in the DOM (DomRendererRowFactory.ts) and canvas renderers (TextRenderLayer.ts), for the latter a new method like fillBottomLineAtCells will need to be done which draws a line through the middle.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BengBu-YueZhang picture BengBu-YueZhang  路  63Comments

mqliang picture mqliang  路  41Comments

chani picture chani  路  27Comments

cristynkells picture cristynkells  路  26Comments

Tyriar picture Tyriar  路  73Comments