Conversation
|
Why not just change the service files to |
|
Sorry I don't think my solution works with how kmscon executes. This solution still seems like it only applies to agetty. Maybe it would be better to use a keyword that automatically gets substituted. The logic for this is in Aetf#124. |
|
$TERM is interpreted by systemd, and the default is "linux" when I test it. You can also add xterm-256color in systemd service, but then people have to modify the service script, and I find it better to be able to change that in /etc/kmscon/kmscon.conf |
|
From a quick look it seems we could use a DCS sequence to inform systemd of which terminal type is being used (systemd/systemd#37538). But we probably still need a solution for all inits. |
I think this is because execve doesn't substitute environment variables. This could be fixed by always executing the command as sh -c 'command', but I am not sure if this causes any issues. |
That way, you can specify the right TERM value for agetty using $$TERM in the systemd unit file. Signed-off-by: Jocelyn Falempe <[email protected]>
Otherwise agetty will overwrite TERM with vt102 Signed-off-by: Jocelyn Falempe <[email protected]>
Agreed, done in my latest push. |
Add a --append-term option, so that agetty will set $TERM to the right value.
Fixes: Aetf#168