To the majority of the world of terminals nowadays, boldface means actual boldface, a change in font weight, not colour.ĭo not use it as if it were a colour change. Only the linux-16color terminal type in the terminfo database tries to set colours 8 to 15 that way, in fact. Ironically, the hardwiring that you, or the person who did that in your prompt, have chosen applies to a small minority of terminal types. Then it will work with many types of terminal and not just the one that you have hardwired. Generate them with tput setaf and tput setab and use command substitution to place the result into your PS1 shell variable. The other programs are not hardwiring control sequences, which is why they work. If you look carefully at your UXTerm screenshot you will see that that is exactly what UXTerm has in fact done, set a low-numbered colour and turned boldface on, just as your prompt asked. Your prompt is trying to set colours 8 to 15 by setting colours 0–7 instead, and turning on boldface (with SGR 1). I like to keep Xterm around just in case my desktop crashes or something funky happens where I kill my ability to start XFCE.(The rest of the gibberish specifies that it sets colours 16 and upwards in response to SGR 38:5 and SGR 48:5, with the faulty separators.) Your terminal sets colours 8 to 15 in response to SGR 90–97 and SGR 100–107, which is what all the gibberish in the setaf and setab actually does.It has hardcoded SGR control sequences for changing colour, and it has hardcoded the wrong ones, for another terminal type. Your prompt is not correct for your terminal type. UXTerm's infocmp, if it helps: Reconstructed via infocmp from file: /lib/terminfo/x/xterm-256colorĪm, bce, ccc, km, mc5i, mir, msgr, npc, xenl,Ĭolors#0x100, cols#80, it#8, lines#24, pairs#0x10000,Īcsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz%-%d%e38 5 %p1%d% m, ~/.alacritty.yml: # Colors (Solarized Light)īut they show completely different behaviours color-wise:īoth pass this test I've found: #!/usr/bin/env bash I'm using Solarized Light color theme for Alacritty and UXTerm. This site includes much text from previous work by Henrik Levkowetz, Robert Sparks, Russ Housley, Ben Kaduk, Murray Kucherawy, Alvaro Retana, the RFC Production Center, and the members of many IESGs.I don't quite understand XTerm's (UXTerm's in this case) behaviour regarding colors. Likewise, the templates and schemas available on this site are published on GitHub and we welcome pull requests proposing changes. The repository README provides guidance on how to submit pull requests. The content for this site is available in GitHub and we welcome pull requests proposing changes from the community. To find out more about authoring an I-D, begin with Getting started. The term "author" is used here, but the information applies to people acting in any role. Internet-Drafts are prepared by people acting in possibly several roles, such as an author or an editor. Unless otherwise indicated, the information on this site applies to all streams. When an I-D is approved to become an RFC, it follows the separate RFC Editor RFC publication process. For the IETF that is documented in the standards development process. Each of the RFC Streams has their own process for how an I-D becomes an RFC. Some I-Ds may eventually be published as a Request for Comment (RFC). Anyone can write and submit an Internet-Draft. Internet-Drafts (I-Ds) are the basic work items of the IETF and they are produced for a variety of purposes by a wide range of individuals and groups. The repositories for the various tools are now in the ietf-tools organisation on GitHub.The xml2rfc vocabulary documentation is now at RFCXML Vocabulary.The catalog of tools is now at Tools catalog.The features available at that site have been replaced as follows: If you have been redirected here from then that site has been decommissioned. If you are new to authoring then begin with the introduction below or if you are more familiar then the main menu lists multiple individual topics. This site is the central resource site for authors of an Internet-Draft (I-D), with information on how to write an I-D and the tools available to support this. ¶ Welcome to the Internet-Draft authors resource site
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |