Xterm.js: Tabbing autocomplete oddity

Created on 1 Jan 2018  路  5Comments  路  Source: xtermjs/xterm.js

I noticed in zsh when tab autocompleting text is getting kept around for some reason. This didn't use to happen in xterm so not entirely sure what caused it.

Details

  • Browser and browser version: Latest Chrome
  • OS version: High Sierra
  • xterm.js version: Tip of v3 branch

Steps to reproduce

  1. Boot up zsh
  2. Type 'cd' and hit tab

tab

help wanted typbug

All 5 comments

To figure out what's happening you can enable debug mode via term.setOption('debug', true) and then inspect the instructions that are sent from zsh when you hit tab, backspace, etc.

Typing cd[tab] yields the following:
screen shot 2018-01-03 at 6 30 41 pm

The first 9 lines are typing c and d.

cd

This looks to be resolved now

I actually repro'd it in an external terminal at some point, so I think it was a problem with zsh.

@npezza93 maybe caused by you locale, my remote locale is en_GB but local locale is zh_CN, and it's occurred, i changed the local locale as en_GB, its running well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

travisobregon picture travisobregon  路  3Comments

zhangjie2012 picture zhangjie2012  路  3Comments

tandatle picture tandatle  路  3Comments

Tyriar picture Tyriar  路  4Comments

johnpoth picture johnpoth  路  3Comments