Skip to content

xterm-kitty and Containers #4104

Answered by page-down
ssbanerje asked this question in Q&A
Oct 7, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Just set TERM and make sure the corresponding terminfo file exists, there is nothing special about it. Maybe you need to check your OS and shell inside the container.

# Debian 11
CONTAINER_ID=$(docker run -d --rm --init debian:bullseye sleep infinity)
infocmp -a xterm-kitty | docker exec -i "$CONTAINER_ID" tic -x -o /root/.terminfo /dev/stdin
docker exec -it -e TERM="$TERM" "$CONTAINER_ID" bash -il

Or you can copy the file from the host into it.

# Alpine Linux 3.14
CONTAINER_ID=$(docker run -d --rm --init alpine:3.14 sleep infinity)
docker exec "$CONTAINER_ID" mkdir -p /root/.terminfo/x
find "$TERMINFO" -type f -name "xterm-kitty" -exec docker cp "{}" "$CONTAINER_ID:/root/.terminfo/x" \;

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@kovidgoyal
Comment options

@ssbanerje
Comment options

@kovidgoyal
Comment options

@page-down
Comment options

Answer selected by ssbanerje
Comment options

You must be logged in to vote
1 reply
@kovidgoyal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants