Skip to contentSkip to conversation

ncurses: Add alacritty terminfo

PATCH New Peter Delevoryas 1 participant 2 messages Dec 2, 2024

lore
Share & tools
lore
#0 lore raw

cover ncurses: Add alacritty terminfo

I use the alacritty terminal emulator and work on the OpenBMC project [1]. I find that when I login to BMCs, I can't use ctrl-l, ctrl-n, or ctrl-p to clear the screen or select previously executed shell commands. From my testing locally with an OpenBMC image, I think all that's necessary is to update this recipe to copy alacritty terminal info, which is already part of the latest terminfo library distribution.

[1]: https://github.com/openbmc/openbmc

Peter Delevoryas (1):
ncurses: Add alacritty terminfo

 meta/recipes-core/ncurses/ncurses.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.43.5
#1 lore raw

PATCH 1/1 ncurses: Add alacritty terminfo

This installs alacritty terminal info alongside other terminal emulator information.

```
$ ls /usr/share/terminfo/a
alacritty  ansi  ansi80x25  ansis  aterm
```

Alacritty is a relatively popular new terminal emulator. Without this, users need to use workarounds like export TERM=xterm to get terminal escape sequences to work (most of alacritty matches xterm/etc).

Some true-color features do not work correctly with TERM=xterm though.

---
 meta/recipes-core/ncurses/ncurses.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
index f5e37b94da66..e96ee075bdd0 100644
@@ -179,7 +179,7 @@ do_install() {
 
         # include some basic terminfo files
         # stolen ;) from gentoo and modified a bit
-        for x in ansi console dumb linux rxvt screen screen-256color sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
+        for x in alacritty ansi console dumb linux rxvt screen screen-256color sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
         do
                 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
                 local basedir="$(basename $(dirname "${termfile}"))"
Signature · 1 line
2.43.5