nyaosorg / go-readline-ny Goto Github PK
View Code? Open in Web Editor NEWReadline library for golang , used in nyagos
Home Page: https://pkg.go.dev/github.com/nyaosorg/go-readline-ny
License: MIT License
Readline library for golang , used in nyagos
Home Page: https://pkg.go.dev/github.com/nyaosorg/go-readline-ny
License: MIT License
Thank you for this project.
Feature request: assume that a user has inputted the following through editor.ReadLine()
function:
If the user presses the UP arrow key for 4 times, than "Morning" will be redisplayed.
Most probably this is due to the following code within history.go
if this.historyPointer <= 0 {
this.historyPointer = this.History.Len()
}
Would it be possible to implement a flag such that, when enabled, if the user presses the UP key >= 4, then only the first input (i.e. "Hello") is displayed?
I saw this tweet: https://twitter.com/NyaosOrg/status/1497486187279175681
and found:
Lines 15 to 33 in 48b319a
I'd like to make some suggestions and invite you to please open issues with wezterm if things aren't working as you expect!
Firstly, I would suggest looking at these two environment variables if you'd like to detect when you are running inside a local wezterm:
; env | egrep '^TERM_'
TERM_PROGRAM=WezTerm
TERM_PROGRAM_VERSION=20220213-203140-4a1c4b55
If you'd like to support the case where you are running in a remote ssh session, you could use a sequence like XTVERSION to probe the terminal version:
\x1b[>q
^[P>|WezTerm 20220213-203140-4a1c4b55^[\
These are supported by wezterm when the unicode version is set to enable them.
https://wezfurlong.org/wezterm/config/lua/config/unicode_version.html#unicode-version-escape-sequence describes escape sequences that you can use to enable them for your application
wezterm should support all skin tone and other modifiers out of the box: we use harfbuzz for this and have explicit unit tests to verify that these are shaped correctly.
If you find examples where this isn't true, please file an issue!
These should be supported, but I'm not sure what your criteria for conformance is for these. I would love to hear more!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.