# Linux-pause **Repository Path**: zenglinxing/linux-pause ## Basic Information - **Project Name**: Linux-pause - **Description**: Using 'pause' command on Linux, showing "Press any key to continue". Just like what 'pause' does on Windows. - **Primary Language**: C - **License**: MIT - **Default Branch**: 0.4.0 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-07 - **Last Updated**: 2025-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Purpose Just to realize the function as the command 'pause' on Windows does on Linux. # Building Requirement. cmake >= 3.9 GCC, or any other available C compiler. ```bash mkdir build && cd build cmake .. cmake --build . cmake --install . ``` # Application ## Runtime After you add the directory of 'pause' into the environment PATH, you can use 'pause' in your terminal. You will get ```bash Press any key to continue ``` ## Programming You can refer to the following example. ```C #include #include"winpause/pause-func.h" int main(int argc, char *argv[]) { printf("1st line\n"); winpause(); printf("2nd line\n"); return 0; } ``` Then compile it ```bash gcc main.c -o main -I -L -lwinpause ```