The year of the word processor approaches
Technology
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
Veronica is fantastic.
bitches be longin' for the days of WordPerfect on DOS.
okay, but why the blue background ?
For the eye strain. Gotta build up those muscles.
Looks like WordPerfect before the wizzywig crap.
The 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 the dialog package and prior to that, the newt package, both for showing curses-based menu-based interfaces, also defaulted to white-on-blue, probably for the same reason.
Hate to be that guy, but presumably she?
Probably ':colors blue'. I had a brief stint with this scheme cerca early 2000s
Vibes.
edit.com vibes, at that.
This is a much better idea than those products that are $1000 for a bad laptop with a tiny eink screen.
Hey, they're only $800: https://shop.boox.com/collections/eink-tablet/products/notemax - yeah, I've wanted an e-ink screen (to sit outside in bright light and read with sunglasses on) for years, but never for the prices they're charging.
It makes me sad that e-ink is so niche that it will never reach a truly cheap price. Last time I checked it seem to have already achieved its mass production potential. It is so hard to manufacture already, and newer developments just find ways to make fancier screens that are even more expensive and complex to make. The process to make them is already as efficient as it can be.
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).
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.
suggesting 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 @zloubida@sh.itjust.works'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.
Better use tput instead. The escape sequences depend heavily on the emulated terminal used.
I'm surprised vim supports italics. Is there any terminal standard for that, like colors and bold text?
Apparently 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.
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.
I 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!
I 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.
Or, install ghostwriter to launch at login.