Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column alignment broken with some emojis #1

Open
danvk opened this issue Mar 29, 2020 · 0 comments
Open

Column alignment broken with some emojis #1

danvk opened this issue Mar 29, 2020 · 0 comments

Comments

@danvk
Copy link
Owner

danvk commented Mar 29, 2020

 DLS POP NAME                               TYPES     DESCRIPTION                                                  UPDATED
 319     solar-calc                         <bundled> A sunrise/sunset/moonrise/moonset calculator                 2 years ago
 240     suntimes                           <bundled> A tiny library to get the exact date and time in utc for cer a day ago
  90     solarxui                           <bundled> React UI Framework with S.O.L.A.R Design System              6 months ago
  36     ks-astronomy                       <bundled> Astronomical calculations for planetary positions, moon phas 5 months ago
   0     ui-solar                           <bundled> React UI Framework with S.O.L.A.R Design System              7 months ago
   0     solor-ui                           <bundled> React UI Framework with S.O.L.A.R Design System              7 months ago
   0     solar-calc-thetsf                  <bundled> A sunrise/sunset/moonrise/moonset calculator                 2 months ago
1.2k     kollavarsham                       <bundled> Convert Gregorian date to Kollavarsham date and vice versa   7 days ago
  1k     @solarlabru/solarlab-crypto-utils  <bundled> solarlab nodejs crypto utils                                 a year ago
 803     @solarlabru/fabric-chaincode-utils <bundled> [![Build Status](https://travis-ci.org/wearetheledger/fabric 2 months ago
 658     @accera/solar-components           <bundled> Web Components implementation of solar Design System         2 months ago
 655     @accera/solar-components.core      <bundled> Web Components implementation of solar Design System         5 days ago
 548     @bulb/docz-theme-solar             <bundled> > Making documentation simpler, cheaper, pinker ✨. > > -- <c 7 months ago

The ✨on the last line takes up two characters in my terminal (iTerm) but '✨'.length evaluates to 1. Some options are to detect these characters or uses curses to more directly draw text at specific columns.

This whole thread seems somewhat relevant xtermjs/xterm.js#2568

Another solution might be to interact more directly with the terminal, e.g. using blessed.

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

No branches or pull requests

1 participant