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

Allow thickness of the bar cursor to be configured? #7168

Closed
ghost opened this issue Feb 17, 2020 · 12 comments
Closed

Allow thickness of the bar cursor to be configured? #7168

ghost opened this issue Feb 17, 2020 · 12 comments
Labels
enhancement issues that are enhancements to current functionality - nice to haves terminal issues related to the terminal

Comments

@ghost
Copy link

ghost commented Feb 17, 2020

Latest xterm.js supports configuring the thickness of bar cursor via xtermjs/xterm.js#2590. Is there a task existing already to upgrade xterm.js? If not we could create a new one and add this feature after it is resolved?

@vince-fugnitto vince-fugnitto added enhancement issues that are enhancements to current functionality - nice to haves terminal issues related to the terminal labels Feb 17, 2020
@vince-fugnitto
Copy link
Member

Can we upgrade xterm.js to get this and other features?

@varmanishant is it something you'd like to take care of?

@ghost
Copy link
Author

ghost commented Feb 17, 2020

@vince-fugnitto , Thanks for the response. I am trying to go through it - will let you know on my progress. As, I am new, I need to figure out a few things.

@vince-fugnitto
Copy link
Member

@vince-fugnitto , Thanks for the response. I am trying to go through it - will let you know on my progress. As, I am new, I need to figure out a few things.

No problem :) Don't hesitate to ask if you have any questions!

@vince-fugnitto
Copy link
Member

Related #7121

@ghost
Copy link
Author

ghost commented Feb 18, 2020

Thanks for adding this PR @vince-fugnitto. Basically it is the same as what I did - however I commented out a block which fails during yarn ... I have added my comment on why it fails and what could be the fix.

@ghost ghost changed the title Upgrade xterm.js to allow thickness of the bar cursor to be configured? Allow thickness of the bar cursor to be configured? Feb 18, 2020
@ghost
Copy link
Author

ghost commented Mar 3, 2020

Can someone let me know the exact way to develop a package say @theia/terminal?

I am doing npx watch @theia/terminal and modifying the code. When I see a change detected, I stop watching and do yarn build to reflect the changes. Is this correct or am I missing something? I always find a cache problem with the old files loading in the browser unless I I do run yarn which takes a lot of time. (Especially it tries to download vsix and fails probably due to Github Token or something like that.)

@vince-fugnitto
Copy link
Member

Can someone let me know the exact way to develop a package

You can use the following approach to make changes, and update the application.
Let's say I am updating @theia/terminal in the repository like you mentioned:

Build Approach

  1. make changes to @theia/terminal
  2. build my changes:
    npx run build @theia/terminal # build the terminal ext
    npx run build @theia/example-browser # build the example-browser
    yarn start:browser # re-start the backend

Watch Approach

  1. given that the repo is built
  2. watch the @theia/terminal ext
     npx run watch @theia/terminal # watches for changes in the terminal ext
  3. watch the @theia/example-browser ext
    npx run watch @theia/example-browser # watches for changes from other ext (terminal)
  4. start the application
    yarn start:browser
    
  5. make changes to @theia/terminal (the changes should be watched)
  6. re-load the frontend (browser) on new changes

@ghost
Copy link
Author

ghost commented Mar 4, 2020

Ah that explains it, thanks @vince-fugnitto. I was missing the @theia/example-browser part!

@ghost
Copy link
Author

ghost commented Mar 8, 2020

Refer: #7284

@ghost
Copy link
Author

ghost commented Mar 11, 2020

There is one more feature that needs to be added:- terminal themes are not reflecting even though there is a code to do that. Should we create a new ticket for that?

In terminal-theme-service.ts we are taking the substring from the 13th position; but that doesn't just work because the colorname comes as "Black, BrightBlack etc." which is not compatible with xterm.js which needs it as "black, brightBlack etc."? The other problem is that we need to read it from the user settings as well. But does that logic belongs tothis file or the instance creation file terminal-widget-impl.ts?

@vince-fugnitto
Copy link
Member

There is one more feature that needs to be added:- terminal themes are not reflecting even though there is a code to do that. Should we create a new ticket for that?

In terminal-theme-service.ts we are taking the substring from the 13th position; but that doesn't just work because the colorname comes as "Black, BrightBlack etc." which is not compatible with xterm.js which needs it as "black, brightBlack etc."? The other problem is that we need to read it from the user settings as well. But does that logic belongs tothis file or the instance creation file terminal-widget-impl.ts?

I believe the following issue tracks the theming not working correctly for terminals:
#7280

@vince-fugnitto
Copy link
Member

Closed by #7284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves terminal issues related to the terminal
Projects
None yet
Development

No branches or pull requests

1 participant