From f2687a20d1e2390d12cf9d9618a37837c6bd7634 Mon Sep 17 00:00:00 2001 From: iliajie Date: Mon, 31 Oct 2022 23:17:23 +0200 Subject: [PATCH] Revert "Fix to make sure that feature is available by default (server owners)" This reverts commit 027578312a43ee0c55a1cbc070a4ae09b800d43b. --- xterm/config | 2 +- xterm/config.info | 2 +- xterm/index.cgi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xterm/config b/xterm/config index 4e3c6bf2d..7fa735415 100644 --- a/xterm/config +++ b/xterm/config @@ -1,2 +1,2 @@ base_port=555 -noflavors=0 \ No newline at end of file +flavors=1 \ No newline at end of file diff --git a/xterm/config.info b/xterm/config.info index fec2dc3c4..440521e9c 100644 --- a/xterm/config.info +++ b/xterm/config.info @@ -1,3 +1,3 @@ base_port=Base port number for WebSockets connections,0,5 size=Terminal width and height in characters,3,Automatic,5,,,Static (80x24) -noflavors=Disable inbuilt command prompt color customization,1,1-Yes,0-No +flavors=Enable inbuilt command prompt color customization,1,1-Yes,0-No diff --git a/xterm/index.cgi b/xterm/index.cgi index 19f75b3cf..15c831b2d 100644 --- a/xterm/index.cgi +++ b/xterm/index.cgi @@ -201,7 +201,7 @@ if ($user eq "root" && $in{'user'}) { # Terminal flavors my (@cmds, $term_flavors); -if (!$config{'noflavors'}) { +if ($config{'flavors'}) { my ($cmd_lsalias, $cmd_ps1) = ("alias ls='ls --color=auto'"); # Optionally add colors to the prompt depending on the user type