- 51 minutes
there’s a writerdeck sublemmy!
tal@lemmy.todayEnglish
5 hoursThe short answer is that it’s presumably some vim theme that he likes, but I’d guess that the origin of that is that DOS text-based applications had a long-running convention — not always universally used — of using white text on blue, unlike the Unix convention of white on black.
You can see that persisting in things like default Midnight Commander color choices (it’s set up to look like the MS-DOS Norton Commander):

…or in Network Manager’s console-menu-based utility,
nmtui. I think that thedialogpackage and prior to that, thenewtpackage, both for showing curses-based menu-based interfaces, also defaulted to white-on-blue, probably for the same reason. vext01@feddit.ukEnglish
3 hoursProbably ‘:colors blue’. I had a brief stint with this scheme cerca early 2000s
- Blue_Morpho@lemmy.worldEnglish7 hours
This is a much better idea than those products that are $1000 for a bad laptop with a tiny eink screen.
zloubida@sh.itjust.worksEnglish
6 hoursI did something like that, but as I’m a Linux n00b (even if I was a Linux-only user for something like 5 years now) it’s far simpler than that. I don’t use a multiplexer, I simply use more than one TTY, and emacs’ buffers. But I may install
kmscon! tal@lemmy.todayEnglish
5 hoursI simply use more than one TTY, and emacs’ buffers.
If you haven’t yet run into emacs’s frames, you may find that useful, unless you explicitly want to also use the Linux virtual consoles for other reasons. In a GUI environment, emacs frames are normally represented by another X11/Wayland window. In a TUI environment, they look kinda like a virtual console.
Each frame contains a set of emacs windows (what a lot of present-day GUI software calls “panes”) laid out to display whatever buffers you want. You can have a buffer shown in a window in multiple frames if you want.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Frames.html
Some basic operations:
C-x 5 2Creates a new frameC-x 5 oSwitches to another frameC-x 5 0Destroys current frame
You can also produce a similar effect by running an emacs instance in daemon mode, and then using emacsclient to attach to that daemon instance on different Linux virtual consoles, if you prefer the multiple-VC approach. One emacs instance and set of buffers, but can have different windows in different layouts showing them and switch between them.
- 6 hours
The italic text in Vim threw me for a loop. But I realised it makes sense.
Syntax highlighting already exists in editors. Terminal based ones often implement this in terms of terminal escapes or similar. Most modern terminal emulators support the enable-italic escape. Thus, some combination of these can effectively emulate markdown.
What I do note is that my root Linux consoles (Ctrl+Alt+F[1-6]), and LMDE) don’t support italics, suggesting the Vim instance is running in a full-screen terminal emulator under some windowing system or another.
That seems like overkill just for italics in an otherwise text-only interface, but maybe I’m missing something (patience being one possibility).
- flubba86@lemmy.worldEnglish5 hours
The answer is right there in the fist paragraph, and in more detail if you read the whole article.
The author uses kmscon, that is a usermode console with proper graphics drivers, hi res rendering, and UTF8 font support. There is no desktop environment used.
I suspect that is where the italics support is coming from. Makes me want to try it out.
tal@lemmy.todayEnglish
5 hourssuggesting the Vim instance is running in a full-screen terminal emulator under some windowing system or another.
Courtesy of this post, here’s a test script to show a terminal’s capabilities:
#!/bin/bash echo -e "\e[1mbold\e[0m" echo -e "\e[3mitalic\e[0m" echo -e "\e[3m\e[1mbold italic\e[0m" echo -e "\e[4munderline\e[0m" echo -e "\e[9mstrikethrough\e[0m" echo -e "\e[31mHello World\e[0m" echo -e "\x1B[31mHello World\e[0m"I thought that it might be them using fbterm (a more-sophisticated userspace framebuffer virtual terminal emulator that’s an alternative to fbcon, the built-in Linux kernel virtual terminal emulator), but at least on my system, fbterm doesn’t seem to show italics.
EDIT: Ah, saw @[email protected]’s comment about kmscon. It looks like they’re using kmscon, a different userspace framebuffer virtual terminal emulator, and explicitly say so in the article.
EDIT2: If you install it, looks like on Debian it gets used by default on next boot as the new console virtual terminal emulator. Note that unlike fbcon and fbterm, you apparently need to use Control-Alt-FKey rather than just Alt-Fkey to switch terminals when you’re inside kmscon, same as if you’re in Xorg or Wayland.
- MonkderVierte@lemmy.zipEnglish1 hour
Better use tput instead. The escape sequences depend heavily on the emulated terminal used.
- frongt@lemmy.zipEnglish6 hours
I’m surprised vim supports italics. Is there any terminal standard for that, like colors and bold text?
tal@lemmy.todayEnglish
5 hoursApparently there are escape sequences for it; see my response to the parent post.
Even if there weren’t, if a given terminal supported either the older Sixel or the newer KiTTY graphics protocol, it can outright display arbitrary images.
Mainline tmux doesn’t support either protocol, though there’s a fork that does do Sixel. They’re using tmux, so I assume that that’s not the route used.
- AHemlocksLie@lemmy.zipEnglish5 hours
I wouldn’t be surprised if support comes from a plugin rather than Vim itself. Plugins can do a LOT in Vim.
Of course, Vim also has a crazy base feature set, so I guess I wouldn’t be all that surprised if it did have base support.







