TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Design, edit and share custom terminal color schemes

92 点作者 rohan1024超过 4 年前

5 条评论

hnlmorg超过 4 年前
A note to any developers writing console applications, please please <i>please</i> don&#x27;t use RGB values in your terminal colour -- only use the 8 base colours plus highlight. RGB values prevent your users terminal from using the custom colour palettes your users might define (and like this site helps you to create). Aside from being a little annoying, it can cause genuine usability problems for some groups of people who use custom palettes:<p>- for visual impairment reasons (eg high contrast colours)<p>- or to differentiate different servers (eg different background colours for dev or prod servers)<p>- or have less contrasting colours to reduce eye strain (eg the Solarized colour schemes)<p>- might suffer from colour blindness so pick colours that contrast better with their condition<p>- or even just those that prefer a white or other non-black backgrounds for readability reasons (eg they might be dyslexic and find a non-black background or different shades of text easier to read).<p>I do fall into two of those categories and run into this issue a lot since there is a trend these days for developers to hard code colour values into their applications.<p>Equally, some developers use the &quot;you can select a custom colour map - I just define a pretty default&quot; argument and while that&#x27;s slightly better, the best option would be still to default to the standard 8 colours (or the default unformatted text) and let users <i>opt into</i> RGB values if they wish. This will save your users from constantly having to define the same colour palettes in every application.
评论 #24432281 未加载
评论 #24433886 未加载
评论 #24432166 未加载
评论 #24433433 未加载
评论 #24434954 未加载
gregsadetsky超过 4 年前
Congrats! Very small note: when changing any of the colors, the URL changes presumably to reflect the new state.<p>The issue is that these &quot;stateful&quot; URLs don&#x27;t work when accessed directly. Try this one that I got by fiddling with the colors a bit:<p><a href="https:&#x2F;&#x2F;terminal.sexy&#x2F;#HR8hxcjGKCoupUJCjJRA3pNfX4GdhWePXo2HcHiAXXyqzGZmtb1ogWo-gaK-spS7ir63xcjG" rel="nofollow">https:&#x2F;&#x2F;terminal.sexy&#x2F;#HR8hxcjGKCoupUJCjJRA3pNfX4GdhWePXo2Hc...</a><p>The site hangs and does not initialize.<p>Cheers<p>(I just emailed the site&#x27;s author about it being discussed here as well)
megous超过 4 年前
You can also do this for Linux kernel console, if you implement export for vt.default_{red,grn,blu} kernel command line parameters.<p><a href="https:&#x2F;&#x2F;elixir.bootlin.com&#x2F;linux&#x2F;latest&#x2F;source&#x2F;Documentation&#x2F;admin-guide&#x2F;kernel-parameters.txt#L5584" rel="nofollow">https:&#x2F;&#x2F;elixir.bootlin.com&#x2F;linux&#x2F;latest&#x2F;source&#x2F;Documentation...</a><p>That would be very useful :)<p>Or this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;EvanPurkhiser&#x2F;linux-vt-setcolors" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;EvanPurkhiser&#x2F;linux-vt-setcolors</a>
shiftpgdn超过 4 年前
Vaguely off topic but has anyone encountered a person using the &quot;grass&quot; or &quot;ocean&quot; OSX terminal themes in the wild? Why are they even there?
评论 #24433654 未加载
评论 #24435472 未加载
jaquers超过 4 年前
Really well done application with tons of export &#x2F; import formats, lots of presets and the palette is integrated into the UI - delightful.<p>Thanks for the submission.
评论 #24435617 未加载