TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Linenoise NG – GNU Readline Replacement, with UTF8 and Windows (BSD)

63 pointsby fcellerover 9 years ago

6 comments

jimrandomhover 9 years ago
I&#x27;m all for replacing readline. It&#x27;s an ancient, very closely linked to the everyday experience of using the command line, and not very good. I want my REPLs to have things like syntax highlighting and decent tab completion UI, and readline has positioned itself to have a monopoly on the ability to implement these things but failed to deliver.<p>But this isn&#x27;t addressing the real problem, which is that readline gets conjoined with the programs that use it. So if I want to write my own line editor, I have to significantly modify every program I want to use it in, which is enough of an obstacle that I won&#x27;t do it (and neither will others). Nevermind more difficult architectural problems, like making editing local when on high-latency connections. Still, having a BSD-licensed line editor to start from may be helpful for whoever takes on that project some day.
评论 #11110937 未加载
评论 #11110367 未加载
cmsd2over 9 years ago
there are a lot of forks of linenoise out there now.<p>this one looks good, but it&#x27;s a big task to pick through all the divergent copies of the code and figure out which ones have genuine improvements and which ones are now rotting.<p>there&#x27;s a rust one too which i recently added mingw&#x2F;msvc support to. that&#x27;s actually an example of how this splintering could be causing problems because we&#x27;ve just vendored some upstream version of the native c code and changes may be difficult to send back upstream.
评论 #11111944 未加载
kazinatorover 9 years ago
Fork of linenoise in the TXR language:<p><a href="http:&#x2F;&#x2F;www.kylheku.com&#x2F;cgit&#x2F;txr&#x2F;log&#x2F;linenoise" rel="nofollow">http:&#x2F;&#x2F;www.kylheku.com&#x2F;cgit&#x2F;txr&#x2F;log&#x2F;linenoise</a><p>Doc:<p><a href="http:&#x2F;&#x2F;www.nongnu.org&#x2F;txr&#x2F;txr-manpage.html#N-025AAA27" rel="nofollow">http:&#x2F;&#x2F;www.nongnu.org&#x2F;txr&#x2F;txr-manpage.html#N-025AAA27</a><p>These changes are in a different direction. I don&#x27;t have windows or UTF-8 support, though. I started a branch to convert it to use wchar_t. Maybe I can cherry pick some things out of NG.
mellingover 9 years ago
How about predictive typing? It would be helpful if something modern learned what I frequently type.<p><a href="http:&#x2F;&#x2F;papersdb.cs.ualberta.ca&#x2F;~papersdb&#x2F;uploaded_files&#x2F;712&#x2F;paper_korvemaker00predicting.pdf" rel="nofollow">http:&#x2F;&#x2F;papersdb.cs.ualberta.ca&#x2F;~papersdb&#x2F;uploaded_files&#x2F;712&#x2F;...</a>
davexunitover 9 years ago
All of this to get around the GPL. Boo!
评论 #11110754 未加载
评论 #11110185 未加载
评论 #11110319 未加载
评论 #11110688 未加载
评论 #11113863 未加载
dorfsmayover 9 years ago
Can it switch between emacs and vi mode (like Deadline)?
评论 #11110398 未加载
评论 #11110194 未加载