fix:修正server ctrl-c退出时终端颜色没有恢复的问题。

This commit is contained in:
taynpg 2025-05-16 11:43:10 +08:00
parent b68017bc2a
commit 15085a1f8f
3 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,7 @@ ReflowComments: true
SpacesBeforeTrailingComments: 3
TabWidth: 4
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ColumnLimit: 130
ColumnLimit: 80
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
AllowShortEnumsOnASingleLine: false

@ -1 +1 @@
Subproject commit 2cf72f3e5c5313527b5d1442017caf06d51a3c02
Subproject commit b9e7bdb7349cc0c469800e42b309676fb5495be8

View File

@ -28,10 +28,8 @@ namespace fs = std::filesystem;
void msignal_handler(int signal)
{
if (signal == SIGINT) {
fc_recovery_color();
exit(signal);
}
fc_recovery_color();
exit(signal);
}
int main(int argc, char* argv[])