Comments (5)
I see, yes. I'll change how it parses OSC codes so it doesn't assume a single digit anymore.
Also, the sample Lua script has problems -- it is important to remove the \001
and \002
sequences from the Lua script:
- Clink automatically adds
\001
and\002
characters where needed for the Readline library. If you manually add them as well, then you're doubling them up as\001\001
and\002\002
, and the Readline library can get confused about the width of the prompt and whether/where it wraps to a new line, which can cause garbled output while typing input at the command promtp. - In the
clink.print()
case they are literally printed to the terminal (the Readline library is not involved, so they go straight to the terminal without being stripped).
The \001
and \002
stuff is specific to Readline, and not to anything else. Clink automatically handles adding them; you shouldn't add them yourself.
from clink.
If they're stripped, then it means Clink doesn't recognize the terminal program, and was forced to fall back to its own built-in terminal emulator.
See the terminal.emulation
setting.
from clink.
I was testing it with Windows Terminal Dev (microsoft/terminal@48eee4d, build from CI) with terminal.emulation = native
and now tested with emulate
too, but it didn't change anything.
from clink.
Thank you and thanks for the remarks regarding \001
and \002
!
from clink.
It was simpler than I anticipated: unrecognized OSC codes were accidentally reported as though they were recognized. But the code that tried to handled recognized OSC codes didn't know what to do with them, so they got accidentally stripped. The fix is simply to accurately report whether OSC codes are recognized.
from clink.
Related Issues (20)
- Have issue to login SunOS 5.11 HOT 3
- v1.5.15 display problem in webstorm terminal HOT 16
- v1.5.17 display problem in VS Code for wider resolutions HOT 7
- install without admin rights? HOT 4
- Creating own aliases HOT 5
- Sometimes startup failed "Initializing Clink is taking a long time......." HOT 14
- Wrong version indicated for updating. HOT 2
- Allow cycling through auto suggestions HOT 5
- Crash on "F7" HOT 3
- Feature Request: Implement Ctrl+A Shortcut HOT 5
- Question: How do I change Right arrow key to only complete one next command part like Shift+Right key? HOT 7
- Feature: Please add support for command line aliases HOT 6
- Put a bunch of files in Cmder's profile.d directory and got a CMD batch recursion error HOT 7
- how to remove the default headers? HOT 1
- Change auto completion key HOT 11
- q: win10 't' key is not printed when pressed HOT 4
- Installed but no usable inside Terminal HOT 10
- How do I disable suggestions? HOT 2
- Support disabling option "wrap text output on resize" HOT 12
- Extra newline before prompt when using quiet mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clink.