mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-22 20:04:19 +01:00
server: custom terminal type support
This commit is contained in:
@@ -171,7 +171,7 @@ thread_run_command(void *args) {
|
||||
lwsl_err("forkpty, error: %d (%s)\n", errno, strerror(errno));
|
||||
break;
|
||||
case 0: /* child */
|
||||
if (setenv("TERM", "xterm-256color", true) < 0) {
|
||||
if (setenv("TERM", server->terminal_type, true) < 0) {
|
||||
perror("setenv");
|
||||
pthread_exit((void *) 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user